assign-role-to-user
Assign a specific role to a user within a chosen Keycloak realm. Provide the realm, user ID, and role name to grant the role through Keycloak administration.
Instructions
Assign a role to a user in a specific realm
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>",
"roleName": "<roleName>"
},
"name": "assign-role-to-user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| userId | Yes | User ID | |
| roleName | Yes | Role name |