Logo
Salesforce Developers API Documentation

Group Members

POST {{_endpoint}}/services/data/v{{version}}/chatter/groups/:GROUP_ID/members?userId=<USER1_ID>

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.

https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_groups_GroupMembers.htm

 

Body PARAM

Key Datatype Required Description 
userId
string



HEADERS

Key Datatype Required Description 




RESPONSES

status Created

{ "id": "0FB...", "lastFeedAccessDate": null, "role": "StandardMember", "url": "/services/data/v58.0/chatter/group-memberships/0FB...", "user": { "additionalLabel": null, "communityNickname": "integration1.4407085834085586E12", "companyName": "Salesforce", "displayName": "Integration User", "firstName": "Integration", "id": "005...", "isActive": true, "isInThisCommunity": true, "lastName": "User", "motif": { "color": "1B96FF", "largeIconUrl": "/img/icon/profile64.png", "mediumIconUrl": "/img/icon/profile32.png", "smallIconUrl": "/img/icon/profile16.png", "svgIconUrl": null }, "mySubscription": null, "name": "Integration User", "outOfOffice": { "message": "" }, "photo": { "fullEmailPhotoUrl": "https://<my_domain>/img/userprofile/default_profile_200_v2.png?fromEmail=1", "largePhotoUrl": "https://<my_domain>/profilephoto/005/F", "mediumPhotoUrl": "https://<my_domain>/profilephoto/005/M", "photoVersionId": null, "smallPhotoUrl": "https://<my_domain>/profilephoto/005/T", "standardEmailPhotoUrl": "https://<my_domain>/img/userprofile/default_profile_45_v2.png?fromEmail=1", "url": "/services/data/v58.0/connect/user-profiles/005.../photo" }, "reputation": null, "title": null, "type": "User", "url": "/services/data/v58.0/chatter/users/005...", "userType": "Internal" } }



Curl
curl -X POST '/services/data/v61.0/chatter/groups/:GROUP_ID/members?userId=<USER1_ID>?userId=<USER1_ID>'

ENDPOINTS