keycloak_get_user_groups
Retrieve all groups assigned to a specific Keycloak user by user UUID, with pagination and realm support.
Instructions
List the groups a user belongs to.
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": {
"userId": "<userId>"
},
"name": "keycloak_get_user_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Maximum number of results to return (1-500). Defaults to 50. | |
| first | No | Pagination offset — index of the first result to return (0-based). | |
| realm | No | Realm to operate on. Defaults to the server's configured realm (KEYCLOAK_REALM). | |
| userId | Yes | User UUID (the `id` field), NOT the username. Find it with keycloak_list_users. |