Skip to main content

List LDAP Groups

This API returns the list of groups available in the connected LDAP directory server.

Endpoint Details

URL/v1/ldap/groups
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
{
"groups": [
{
"dn": "CN=Taka Sales,OU=Taka,DC=prima,DC=net",
"cn": "Taka Sales",
"group_type": "-2147483646",
"total_members": 5
},
{
"dn": "CN=Taka Finance,OU=Taka,DC=prima,DC=net",
"cn": "Taka Finance",
"group_type": "-2147483646",
"total_members": 4
},
{
"dn": "CN=Taka Admin,OU=Taka,DC=prima,DC=net",
"cn": "Taka Admin",
"group_type": "-2147483646",
"total_members": 3
},
{
"dn": "CN=Taka IT,OU=Taka,DC=prima,DC=net",
"cn": "Taka IT",
"group_type": "-2147483646",
"total_members": 2
}
]
}

Field Descriptions

FieldTypeDescription
dnStringDistinguished name of the group in the LDAP directory
cnStringCommon name of the group
group_typeStringLDAP group type value
total_membersIntegerNumber of members in the group

info
  • A valid Bearer Token is required to access this endpoint.
  • The response reflects the groups currently available in the connected LDAP directory server.