yaaif_user_role_set
Change a tenant user's platform role to ADMIN, EDITOR, DEVELOPER, VIEWER, CHAT_USER, or a custom role, with admin confirmation for granting ADMIN.
Instructions
Change a tenant user's platform role (ADMIN, EDITOR, DEVELOPER, VIEWER, CHAT_USER, or a custom role from yaaif_roles_list). Requires users:write. Granting ADMIN additionally requires the caller to be ADMIN and confirm_admin_grant=true.
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": {
"role": "<role>"
},
"name": "yaaif_user_role_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| No | |||
| user_id | No | ||
| confirm_admin_grant | No |