If you need to add a lot of Chatter Users to a Chatter group at one time, the fastest option is to add them in mass with Data Loader. To do this, you'll need to prepare an insert file that contains the Chatter Group ID (CollaborationGroupId) and the User ID (MemberId) values, and perform an insert operation to the Group Member (CollaborationGroupMember) object.
| Warning Always back up your data before performing any data operation. See Export Backup Data from Salesforce or Export Data for more details. It is recommended to run a test with a small subset of records to ensure the operation was successful through manually opening and verifying that the corresponding records are correct in Salesforce. |
For a short video walk through, watch our Salesforce Support Youtube video:
Note: Upon adding Chatter group members via either method, an email notification is sent to each newly added group member's corresponding email address from noreply@chatter.salesforce.com.
Subject: <UserWhoAddedMembersNameHere> added you to the group <GroupNameHere>
Body: Welcome! You're now a member of the <GroupNameHere>
<Group'sDescriptionHere>
View (a button that links to the chatter group)
If uploading to a private Chatter group, the User performing the operation must be the owner or a group manager to add members.
To mass add Chatter group members via the API you will need to create an insert file. The Chatter group Id (CollaborationGroupId) and User Id (MemberId) fields are required and must be included in your file.
You can also include and set the following fields for each User upon inserting them as Chatter group members:
CollaborationRole: The role of a group member. If not included or specified in the file, the User will be set as a group member and not as a group manager.
NotificationFrequency: The frequency at which Salesforce sends Chatter group email digests to this member. "NotificationFrequency" field can be set for Weekly, Daily, Every Post and Never values, indicated by W, D, P and N respectively. This is "Set Frequency for Personal Digest" for daily digest. If not included or specified in the file, the default value is set to the User's Chatter email settings. See Managing Chatter Email for more details.
Attached, you will find an insert file template to help you get started. Columns A and B are required fields while C and D are optional. Row 1 contains the field labels, row 2 contains sample data that you'll need to replace, and row 3 contains a brief explanation of each field/column which you can view by selecting the cell and expanding the formula bar in Excel:
For an overview of all CollaborationGroupMember fields, review CollaborationGroupMember.
000384464
1 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.