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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| No | |||
| user_id | No | ||
| confirm_admin_grant | No |