add_user_realm_role_mappings
Assign realm-level roles to a specific user in Keycloak by providing the realm, user ID, and role representations.
Instructions
Add realm-level role mappings to a user.
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>",
"roles": "<roles>"
},
"name": "add_user_realm_role_mappings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| user_id | Yes | User ID | |
| roles | Yes | List of role representations |