Add users and groups to the scope of a role
POST/api/v1/RolesRole/:roleId/ManagedAccountOrGroupEntity
Adds users, groups or collections to the scope of a role, which is the set of users the role members can act on. For an Auditors role, it sets whose sessions the members can see. This is separate from the members who hold the role.
Permission required: Administrator role.
Values for entityType: 0 = ManagedAccount, 1 = ManagedAccountGroup, 2 = Application, 3 = Collection, 4 = Local.
Caution: Adding users to the scope widens what role members can act on, such as whose sessions an auditor can see, and takes effect immediately.
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.