Edit users
users_writeUpdates site users (profile data, login, group membership) and creates and updates user groups and their permissions. Users are not created and passwords are not set here: that is done in the site control panel.
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>",
"site_id": "<site_id>"
},
"name": "users_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Group id. | |
| gid | No | Group id. On group actions it is a synonym for id. | |
| name | No | Full name of a user, 3-35 characters, or the name of a group. | |
| No | User email. | ||
| login | No | New login. | |
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| fields | No | Extra profile fields of a user, or permissions of a group. Group permission codes come from groups_rights and group_permissions. | |
| site_id | Yes | Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose. | |
| user_id | No | Numeric user id. |