Give roles to a user
POST/api/v1/RolesRole/AddRolesToManagedAccount/:managedAccountId
Gives a user one or more roles in a single call. It handles the built-in Administrator and Reviewer roles and custom roles together. Custom roles the user already holds are skipped and not counted.
Permission required: Administrator role.
Caution: Adding the Administrator role gives the user or group full administrative access to the console.
Request
Responses
- 200
- 400
- 403
- 404
Returns an object with item1, the number of roles added, and item2, the number that failed.
The roles could not be added.
The signed-in user does not have the required role, or the account has read-only administrator access.
The user does not exist.