assign-role-to-group
Assigns a Keycloak role to a group in a specified realm using the group ID and role name, enabling group-level permission management.
Instructions
Assign a role 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 | |
| roleName | Yes | Role name |