Skip to main content

Detail LDAP Group Members

This API returns the members of a specific LDAP group, identified by the group's distinguished name (DN).

Endpoint Details

URL/v1/ldap/groups-members
MethodPOST
AuthorizationBearer Token

Request Headers

HeaderTypeDescription
Content-TypeStringMust be application/json

Request Body

Use the following format to make a request:

JSON Request
{
"group_dn": "CN=Taka IT,OU=Groups,DC=example,DC=com"
}

Parameters

ParameterTypeDescription
group_dnStringDistinguished name of the LDAP group to list members of

Response

Here is an example response after the request has been successfully processed:

Response
{
"users": [
{
"dn": "CN=member aplikasi,OU=Users,DC=example,DC=com",
"sam_account_name": "member_aplikasi",
"mail": "member.aplikasi@example.com",
"user_principal_name": "member_aplikasi@example.com",
"display_name": "member aplikasi",
"given_name": "member",
"sn": "aplikasi",
"cn": "member aplikasi"
},
{
"dn": "CN=john doe,OU=Users,DC=example,DC=com",
"sam_account_name": "johndoe",
"mail": "john.doe@example.com",
"user_principal_name": "johndoe@example.com",
"display_name": "john doe",
"given_name": "john",
"sn": "doe",
"cn": "john doe"
}
]
}

Field Descriptions

FieldTypeDescription
dnStringDistinguished name of the user in the LDAP directory
sam_account_nameStringSAM account name of the user
mailStringEmail address of the user
user_principal_nameStringUser principal name (UPN) of the user
display_nameStringDisplay name of the user
given_nameStringGiven (first) name of the user
snStringSurname (last name) of the user
cnStringCommon name of the user

info
  • A valid Bearer Token is required to access this endpoint.
  • The group_dn must reference an existing group in the connected LDAP directory server.
  • The response lists all users that are members of the specified group.