List the roles of a user
GET/api/v1/RolesRole/SearchRolesForManagedAccount/:managedAccountId
Returns the roles that a user holds, as a page of results that you can filter by name or description. The built-in Administrator and Reviewer roles appear when the user has them.
Permission required: Administrator role.
Values for roleTarget: 0 = AccessPolicies, 1 = Credentials, 2 = Auditors.
Request
Responses
- 200
- 400
- 403
- 404
Returns a page of results in data, with the total number of matching rows in recordsTotal.
The roles could not be retrieved.
The signed-in user does not have the required role.
The user does not exist.