The POST /environments/{{envID}}/users/{{userID}}/memberOfGroups operation directly adds one user to a specified group. The group ID is indicated in the body of the request. For more information on adding users to groups, see Adding users to groups.

For more information about groups, see Groups.

Admins cannot add or remove themselves from a a group with admin roles.

Prerequisites

Property Type Required?
id String Required

See the Groups data model for full property descriptions.