Add users and groups to a role
POST/api/v1/RolesRole/:roleId/ManagedAccountOrGroup
Gives a role to users, groups, applications or collections that are on the Users & Groups page. Accounts that already hold the role, and IDs that do not exist, are skipped.
Permission required: Administrator role.
Values for entityType: 0 = ManagedAccount, 1 = ManagedAccountGroup, 2 = Application, 3 = Collection, 4 = Local.
Request
Responses
- 200
- 400
- 403
- 404
Returns the number of entries added.
The entries could not be added.
The signed-in user does not have the required role, or the account has read-only administrator access.
The role does not exist.