roles_add_role_assignment
Assign a role to a user, replacing any previous assignment. Requires admin permissions and takes effect immediately.
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 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the role | |
| user_id | Yes | ID of the user to assign the role to |