Manage User Roles
user_role_managementList, add, or remove roles for a specified user to control access permissions.
Instructions
Add or remove roles for a user.
Parameters
action:
"get" to list current roles, "add" to assign new roles or
"remove" to revoke them.
user_id:
Identifier of the target user.
role_ids:
List of role identifiers used with "add" and "remove".
Returns
dict JSON payload from the API.
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": {
"action": "<action>",
"user_id": "<user_id>"
},
"name": "user_role_management"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| user_id | Yes | ||
| role_ids | No |