get_user_groups
Retrieve all group memberships for a user, including direct and nested groups, from Active Directory or Azure AD.
Instructions
List all groups a user is a member of (direct and via memberOf attribute).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"identifier": "<identifier>"
},
"name": "get_user_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | sAMAccountName for on-prem AD, or UPN/object ID for Azure AD | |
| source | No | Data source: "ad" for on-prem LDAP, "azure" for Azure AD/Entra ID (available: ad, azure) | ad |