Skip to main content

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​

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