Give roles to a group
POST/api/v1/RolesRole/AddRolesToManagedAccountGroup/:managedAccountGroupId
Gives a group one or more roles in a single call. It handles the built-in Administrator and Reviewer roles and custom roles together. Members of the group receive the roles through the group, and custom roles the group already holds are skipped and not counted. The Administrator role can be given only to a group that is backed by a directory group; otherwise that item counts as failed.
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 group does not exist.