Skip to main content

Add members to a group

POST 

/groups/:groupName/members

Adds users to a group.

This grants AWS access, immediately. Everyone added inherits every permission set already assigned to the group, in every account those assignments cover, with no further approval step and no notification to anyone. Read GET /groups/{groupName}/assignments before you add someone.

Identify users by their directory username, not their email address. An email matches no user, and because this operation reports nothing about individual names the mistake surfaces only as a 500.

The response echoes your request, not the result. usersAdded is the array you sent, returned verbatim, and count is its length. Neither says which adds actually happened. Confirm with GET /groups/{groupName}/members.

The operation is not atomic. Users are added one at a time and the failures are collected and reported together at the end, so a 500 can mean some were added and some were not. Re-sending the whole list is the usual way to recover.

A group name that matches nothing is a 500 here, not a 404, unlike GET on the same path.

A body of {} or {"users": null} is accepted rather than rejected: nothing is added and the response is a 200 with usersAdded: null and count: 0.

Request​

Responses​

The request was processed. Every name you sent is echoed back whether or not it was added; see the note above.