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 |
| Method | POST |
| Authorization | Bearer Token |
Request Headers
| Header | Type | Description |
|---|---|---|
| Content-Type | String | Must 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
| Parameter | Type | Description |
|---|---|---|
| group_dn | String | Distinguished 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
| Field | Type | Description |
|---|---|---|
| dn | String | Distinguished name of the user in the LDAP directory |
| sam_account_name | String | SAM account name of the user |
| String | Email address of the user | |
| user_principal_name | String | User principal name (UPN) of the user |
| display_name | String | Display name of the user |
| given_name | String | Given (first) name of the user |
| sn | String | Surname (last name) of the user |
| cn | String | Common name of the user |
info
- A valid Bearer Token is required to access this endpoint.
- The
group_dnmust reference an existing group in the connected LDAP directory server. - The response lists all users that are members of the specified group.