assign-role-to-user
Assign a specified role to a user in Keycloak. Provide realm, user ID, and role name; optionally include client ID to assign a client role.
Instructions
Assign a realm role, or a client role when clientId is given, to a user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| userId | Yes | User ID | |
| clientId | No | Client ID to resolve roleName as a client role. Omit for a realm role | |
| roleName | Yes | Role name |