assign-role-to-group
Assign a realm role or client role to a group in Keycloak; specify clientId to target a client-specific role.
Instructions
Assign a realm role, or a client role when clientId is given, to a group
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>",
"groupId": "<groupId>",
"roleName": "<roleName>"
},
"name": "assign-role-to-group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| groupId | Yes | Group ID | |
| clientId | No | Client ID to resolve roleName as a client role. Omit for a realm role | |
| roleName | Yes | Role name |