Add Assignees

Add Assignees

Assigns a role with a given ID to a list of user and service accounts and groups.

Request
URI
POST
https://{api_host}/api/v2/role/{id}/addAssignees
COPY
Path Parameters
string
id
Required

The ID of the role to assign. 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 add to the role.

Array of string of type(s) application/json
Optional
[
    {}
]
Authentication
This operation uses the following authentication methods.
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"
    }
}
status
Required

status

response
Optional

response