roles_add_role_assignment
Assign a role to a user, replacing any existing assignment with immediate effect.
Instructions
Add a role assignment.
Assigns a role to a user. Requires admin permissions.
Workflow tips:
User can have only one role at a time
Previous role assignment will be replaced
User inherits all role permissions
Changes take effect immediately
Common use cases:
Assign role to user: { "id": 123, "user_id": 456 }
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": {
"id": "<id>",
"user_id": "<user_id>"
},
"name": "roles_add_role_assignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the role | |
| user_id | Yes | ID of the user to assign the role to |