Remove Assignees
Revokes a role with a given ID from a list of user and service accounts and groups.
Request
URI
POST
https://{api_host}/api/v2/role/{id}/removeAssignees
COPY
Path Parameters
string
id
Required
The ID of the role to revoke. If you don't know the role's ID, run the Get all roles
API call to return all roles and their IDs.
Request Body
A list of accounts and groups to remove from the role.
Array of string of type(s) application/json
Optional
[
{}
]
Responses
200
successful operation
Returns ResponseContainerRoleDTO of type(s) application/json
{
"status": {
"result": "string",
"message": "string",
"code": 0
},
"response": {
"sampleLinkedGroups": [
"UserGroup Object"
],
"linkedGroupsCount": 0,
"sampleLinkedAccounts": [
"string"
],
"linkedAccountsCount": 0,
"restrictedPermissions": [
"string"
],
"properties": {
"nameEditable": false,
"usersRemovable": false,
"usersAddable": false,
"permsEditable": false,
"deletable": false
},
"permissions": [
"string"
],
"name": "string",
"id": "string",
"description": "string",
"createdEpochMillis": 0,
"lastUpdatedMs": 0,
"lastUpdatedAccountId": "string",
"customer": "string"
}
}