Skip to main content

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​

Returns the number of entries added.