Add user to group
nextcloud_add_user_to_groupAdd a user account to a Nextcloud group by providing user ID and group ID, enabling group-based access and permissions.
Instructions
Add one account to a group.
POST /ocs/v2.php/cloud/users/{user_id}/groups
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": {
"user_id": "<user_id>",
"group_id": "<group_id>"
},
"name": "nextcloud_add_user_to_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | ||
| group_id | Yes |