Skip to main content

List User Set Policies

This API returns a list of user set policies available within the tenant.

Endpoint Details

URL/v1/config-agent/user-sets
MethodGET
AuthorizationBearer Token

Request Headers

HeaderTypeDescription
Content-TypeStringMust be application/json

Response

Here is an example of a response when viewing a list of data:

Response
{
"data": [
{
"id": "95811aa4-5b61-46d3-a007-14d0a576ef60",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Dummy User Sets",
"users": [
{
"uname": "dummy",
"gname": "dummy",
"uid": "1000",
"gid": "1000"
}
],
"created_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"created_by_name": "Admin Aplikasi",
"updated_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"updated_by_name": "Admin Aplikasi",
"created_at": 1785214953,
"updated_at": 1785214953
},
{
"id": "e3eaae0d-471c-4d34-ba13-9698f7d8955f",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Basic User",
"users": [
{
"uname": "basicuser",
"gname": "basicuser",
"uid": "1004",
"gid": "1004"
}
],
"created_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"created_by_name": "Iqbal Adhi",
"updated_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"updated_by_name": "Iqbal Adhi",
"created_at": 1780654659,
"updated_at": 1780654659
},
{
"id": "6ae6ff00-18a0-46c9-b9b8-6561e008f5cf",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Admin User Set",
"users": [
{
"uname": "adminuser",
"gname": "adminuser",
"uid": "1003",
"gid": "1003"
}
],
"created_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"created_by_name": "Iqbal Adhi",
"updated_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"updated_by_name": "Iqbal Adhi",
"created_at": 1780654551,
"updated_at": 1780654551
},
{
"id": "d0a6bc12-656f-4529-b413-805e9aa7f869",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Super Admin",
"users": [
{
"uname": "superadmin",
"gname": "superadmin",
"uid": "1002",
"gid": "1002"
}
],
"created_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"created_by_name": "Iqbal Adhi",
"updated_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"updated_by_name": "Iqbal Adhi",
"created_at": 1780654432,
"updated_at": 1780654432
}
{
"id": "45a0ce7b-9f40-4dfb-bb28-8b592cb150d5",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "User Test 45677104",
"users": [
{
"uname": "usertest",
"gname": "usertest",
"uid": "1006",
"gid": "1006"
}
],
"created_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"created_by_name": "Iqbal Adhi",
"updated_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"updated_by_name": "Iqbal Adhi",
"created_at": 1780045687,
"updated_at": 1780045723
}
],
"pagination": {
"total": 5,
"page_size": 5,
"last_page": 1
}
}

Field Descriptions

FieldTypeDescription
idUUIDUnique identifier of the user set policy
tenant_idUUIDIdentifier of the tenant that owns the user set policy
nameStringName of the user set policy
descriptionStringDescription of the user set policy
usersArrayList of users included in the policy
unameStringUsername of the user
gnameStringGroup name of the user
uidStringUser ID (UID) of the user
gidStringGroup ID (GID) of the user
domain_osStringOperating system domain that restricts the policy
created_byUUIDIdentifier of the user who created the policy
created_by_nameStringDisplay name of the user who created the policy
updated_byUUIDIdentifier of the user who last updated the policy
updated_by_nameStringDisplay name of the user who last updated the policy
created_atIntegerCreation timestamp in Unix format
updated_atIntegerLast update timestamp in Unix format
totalIntegerTotal number of user set policies available
page_sizeIntegerNumber of records returned per page
last_pageIntegerTotal number of available pages

info
  • A valid Bearer Token is required to access this endpoint.
  • The description field may not be present if the policy was created without a description.
  • The domain_os field is only present when a domain restriction is configured for the user.
  • Unix timestamp fields can be converted to a human-readable date and time format as needed.