get-user-roles
Fetch all directly assigned roles for a user in a Keycloak realm, returning realm and client mappings to identify permission scopes.
Instructions
Get all roles directly assigned to a user, returned as { realmMappings, clientMappings }
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>",
"userId": "<userId>"
},
"name": "get-user-roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| userId | Yes | User ID |