Get Role's Rights at Machine
Given a list of machine identifiers and a list of role names (or IDs), returns the cumulative list of all rights granted by all the specified roles, at the specified machine.
| Verb | POST |
|---|---|
| Endpoint | {base-url}/roles/role-rights-at-machine |
| Max Page Size | 50 |
Request Body
{
"requestFilter": {
"machineIdentifiers": ["3283"]
},
"routeFilter": {
"roleIdentifiers": [4]
}
}
Filters Honored
- RequestFilter
- machineIdentifiers
- PermissionsFilter
- roleIdentifiers
Returns
On Success
Return format is Dictionary<int, List<Right>>, where the key is the machine ID and the value is the list of granted rights.
Response Body
{
"3283": [
{
"id": 1,
"name": "Manage Selections",
"description": "Ability to view and edit selections",
"isViewable": true,
"isEditable": true,
"isExecutable": false
}
]
}
On Error
| HTTP Code | Error Code | Definition |
|---|---|---|
| 403 | DATA_ACCESS_VIOLATION | One or more of the specified roleIdentifiers belong to an organization you do not have access to. |
| 422 | MISSING_REQUIRED_DATA | No role identifiers were provided. |