list_user_groups
List groups that a user belongs to in a Keycloak realm. Filter results by group name and paginate output.
Instructions
List groups that 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": {
"realm": "<realm>",
"user_id": "<user_id>"
},
"name": "list_user_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| user_id | Yes | User ID | |
| search | No | Search string for group name | |
| first | No | Pagination offset | |
| max | No | Maximum results size | |
| briefRepresentation | No | If true, return brief representation |