Skip to main content

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​

Returns an object with item1, the number of roles added, and item2, the number that failed.