Group Members
Members of a specified group. Get the members and add a
member to a group. To add a member, the context user must be the group owner or
moderator.
- Resource
-
/chatter/groups/groupId/members
/connect/communities/communityId/chatter/groups/groupId/members
- Available since version
- 23.0
- Requires Chatter
- Yes
- HTTP methods
- GET, POST
- Request parameters for GET
-
Parameter Name Type Description Available Version page Integer An integer specifying a page of items. The default value is 0, which returns the first page. 23.0 pageSize Integer Specifies the number of items per page. Valid values are from 1 through 1000. If you don’t specify a size, the default is 25. 23.0 - Response body for GET
- Group Member Page
- Request body for POST
-
- Root XML tag
- <member>
- Properties
- Request parameter for POST
-
Parameter Name Type Description Available Version role String The role of the member. One of these values: - GroupManager
- StandardMember
29.0 userId String ID of the user to add to the group. 23.0 - Response body for POST
- Group Member
- Example for adding a member to a group using the request body
-
{"userId": "005D0000001GpHp" }
- Example for adding a member to a group using parameters
-
/services/data/v64.0/chatter/groups/0F9D000000006bOKAQ /members?userId=005D0000001GpHp