grouper_trace_membership
Trace how a user belongs to a group by returning the complete membership path, including direct, intermediate, and composite group operations for debugging access and auditing.
Instructions
Trace how a subject (user) is a member of a group, showing the complete membership path. This tool identifies whether membership is direct (immediate), through intermediate groups (effective), or through composite group operations (union/intersection). Returns a detailed trace showing the chain of memberships from the subject to the target group, including intermediate groups, membership types, and composite operations. Useful for debugging access issues, understanding complex membership hierarchies, and auditing group membership paths. Maximum recursion depth is 10 levels to prevent timeout.
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": {
"subjectId": "<subjectId>",
"groupName": "<groupName>"
},
"name": "grouper_trace_membership"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Maximum recursion depth for tracing (1-20). Default: 10. Higher values may timeout for complex hierarchies. | |
| groupName | Yes | The full group name to trace membership to (e.g., "app:security:admin") | |
| subjectId | Yes | The subject ID of the user to trace membership for | |
| subjectSourceId | No | Optional subject source ID (e.g., "ldap", "jdbc"). If not specified, Grouper will search across all sources. |