grouper_assign_privilege
Grant or revoke privileges on groups or stems for users or groups, with batch operations for multiple subjects and privileges.
Instructions
Grant or revoke one or more privileges on a group or stem for one or more subjects. For groups, use groupName with access privileges (read, view, update, admin, optin, optout, groupAttrRead, groupAttrUpdate). For stems, use stemName with naming privileges (stem, create, stemAdmin, stemView, stemAttrRead, stemAttrUpdate). Supports batch operations for multiple subjects and multiple privileges. Subjects can be either users or groups. When assigning privileges to a group as a subject, use the group's UUID as the subjectId (the group name will not work). Grouper will automatically recognize the UUID as a group without needing to specify subjectSourceId. Returns formatted results showing success/failure for each privilege assignment.
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": {
"privilegeNames": "<privilegeNames>"
},
"name": "grouper_assign_privilege"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allowed | No | Set to "T" to grant privileges (default), "F" to revoke privileges | |
| stemName | No | The full name of the stem to assign privileges on (use this OR groupName, not both) | |
| subjects | No | Array of subjects for batch operation (use this OR subjectId, not both). Each subject can be a user or a group. For groups, use the group UUID as subjectId. | |
| groupName | No | The full name of the group to assign privileges on (use this OR stemName, not both) | |
| subjectId | No | Subject ID for single subject operation (use this OR subjects array, not both). For user subjects, use their Subject ID. For group subjects, use the group UUID. | |
| privilegeNames | Yes | Array of privilege names to assign. For groups: read, view, update, admin, optin, optout, groupAttrRead, groupAttrUpdate. For stems: stem, create, stemAdmin, stemView, stemAttrRead, stemAttrUpdate | |
| subjectSourceId | No | Optional subject source ID for single subject. Not needed when using a group UUID as subjectId. | |
| subjectIdentifier | No | Optional subject identifier for single subject |