Change Space Member Role
change_space_member_roleChanges the role of a user or group in a Docmost space to admin, writer, or reader; space admin rights are required.
Instructions
Change the role of one user (email or id) or one group (name or id) in a space. Docmost keeps at least one admin per space. Needs admin rights in the space.
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": {
"space_id": "<space_id>",
"role": "<role>"
},
"name": "change_space_member_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | admin, writer or reader. | |
| user | No | The user's email or id; give user or group. | |
| group | No | The group's name or id; give user or group. | |
| space_id | Yes | Space id from list_spaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||