Groups are named collections of Users. They allow you to refer to multiple Users as a unit in various product areas like filtering and reporting. A group typically represents a team in your company. For example, you can have a Sales group and a Support group. A User can be a member of multiple Groups.
Endpoints for groups require a
?_fields=name,members GET parameter to return corresponding field data. Specify only the fields you want to reduce the amount of data returned.
Endpoints that support filtering for both groups and users use the existing
?user_id__in=user_abc,user_xyz GET parameter. To filter for users that belong to a group, just include the group ID. You can mix individual users and groups in the same request. For example:
Note that list endpoint does not support retrieving members for all groups. Use individual group endpoint instead.
A group is created with no users. Use the member endpoint to add or remove members.
You can use this endpoint to rename a Group. If a name is not unique, an error will be returned.
This is only allowed if the Group is not referenced by saved reports or smart views.
If the user is already a member of the group, nothing changes.
If the user is not a member of the group, nothing changes.