Object Reference for the Salesforce Platform
NetworkMemberGroup
If a Chatter customer (from a customer group) is assigned a permission set that is also associated with an Experience Cloud site, the Chatter customer won’t be added to the site.
Prior to API version 27.0, this object was called NetworkProfile.
Note
Supported Calls
create(), describeSObjects(), query(), retrieve(), update()
The upsert() call is not supported for this object.
Note
Special Access Rules
This object is available only when your org has digital experiences enabled.
Fields
| Field Name | Details |
|---|---|
| AssignmentStatus |
|
| NetworkId |
|
| ParentId |
|
Usage
Use this object to view the profiles or permission sets associated with a particular Experience Cloud site. Profiles and permission sets are added and removed asynchronously, so you can also check the status of a profile or permission set that was updated in a site.
If you have Modify All Data, View All Data, or Create and Set Up Experiences, you can view all profiles or permission sets for any Experience Cloud site in the org, regardless of your membership. If you have Modify All Data or Create and Set Up Experiences, you can also add profiles or permission sets. Users without these permissions can only find profiles and permission sets for Experience Cloud sites that they’re members of.
Sample Code
1// Create a new NetworkMemberGroup with a profile as the ParentId
2NetworkMemberGroup nmgInsert = new NetworkMemberGroup();
3nmgInsert.setNetworkId('{enter your network ID : ODB...}');
4nmgInsert.setParentId('enter the profile or permission set ID : 00e... or 0PS...');
5SaveResult[] results = connection.create(new SObject[] { nmgInsert });
6
7// Update an existing NetworkMemberGroup to be removed from the Network
8NetworkMemberGroup nmgUpdate = new NetworkMemberGroup();
9nmgUpdate.setId('enter your NetworkMemberGroup ID : 0DL...');
10nmgUpdate.setAssignmentStatus('WaitingForRemove');
11SaveResult[] results = connection.update(new SObject[] { nmgUpdate });