Grant or revoke a system operation for users/roles
set-admin-operation-granteeGrant or revoke a system operation for multiple users or roles by specifying the operation ID, unit IDs, and permission state. Avoids duplicate rows on repeated calls.
Instructions
Grant (canExecute=true) or revoke (canExecute=false) a system operation for one or more SysAdminUnit ids (users or roles). Repeated calls for the same (operation, unit) pair update the existing grant row instead of duplicating. Use this instead of the generic create/update tools — OData modifications on SysAdminOperationGrantee are blocked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canExecute | Yes | `true` grants the operation (allow) to every listed admin unit; `false` revokes it (deny). | |
| adminUnitIds | Yes | SysAdminUnit Ids (users or roles) that should receive the same grant/revoke state. Resolve via `read` on `SysAdminUnit` filtered by Name. Use SysAdminUnit.Id (NOT ContactId). | |
| adminOperationId | Yes | Id of the SysAdminOperation being granted or revoked. Look up via `read` on `SysAdminOperation` filtered by Code. |