---
schema_version: "1"
id: 216b5f2791b04f7e044922a167c7bd3da188101c697a7c04ea171b1dbbfc7292
title: NetworkMemberGroup
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_networkmembergroup.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_networkmembergroup.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d7586852ae4f58f823591535e3b41294cc10084fc170e9eee43fdaf332a7b1f2
description: Represents a group of members in an Experience Cloud site. Members can be either users in your internal org or external users assigned portal profiles. An administrator adds members to an Experience Cloud site by adding a profile or a permission set, and any user with the profile or permission set becomes a member of the site. This object is available in API version 26.0 and later.
---
# NetworkMemberGroup

Represents a group of members in an Experience Cloud site. Members can be either users in your internal org or external users assigned portal profiles. An administrator adds members to an Experience Cloud site by adding a profile or a permission set, and any user with the profile or permission set becomes a member of the site. This object is available in API version 26.0 and later.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

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.

## Supported Calls

create(), describeSObjects(), query(), retrieve(), update()

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

The upsert() call is not supported for this object.

## Special Access Rules

This object is available only when your org has digital experiences enabled.

## Fields

| Field Name | Details |
| --- | --- |
| AssignmentStatus | 
Type

picklist

Properties

Defaulted on create, Filter, Group, Restricted picklist, Sort, Update

Description

The status of a profile or permission set within an Experience Cloud site. Values are:

- Add Calculated—The number of users that need to be added are calculated and the add operation is in progress.
- Added—Users with this profile or permission set are members.
- Failed Add—Users with this profile or permission set were not successfully made members.
- Failed Remove—Users with this profile or permission set were not successfully removed from membership.
- Remove Calculated—The number of users that need to be removed are calculated and the remove operation is in progress.
- Waiting for Add—The profile or permission set was added to the Experience Cloud site, but the async process hasn’t completed yet. After the process is complete, the status is updated to Added.
- Waiting for Remove—Use this status to remove all the members belonging to a profile or permission set and remove a profile or permission set from an Experience Cloud site.





 |
| NetworkId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the Experience Cloud site that this group of members is associated with.



 |
| ParentId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the [profile](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_profile.htm "Represents a profile, which defines a set of permissions to perform different operations. Operations can include creating a custom profile or querying, adding, updating, or deleting information.") or [permission set](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_permissionset.htm "Represents a set of permissions that’s used to grant more access to one or more users without changing their profile or reassigning profiles. This object is available in API version 22.0 and later.") associated with the Experience Cloud site.



 |

## 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

// Create a new NetworkMemberGroup with a profile as the ParentId
NetworkMemberGroup nmgInsert = new NetworkMemberGroup();
nmgInsert.setNetworkId('{enter your network ID : ODB...}');
nmgInsert.setParentId('enter the profile or permission set ID : 00e... or 0PS...');
SaveResult\[\] results = connection.create(new SObject\[\] { nmgInsert });

// Update an existing NetworkMemberGroup to be removed from the Network
NetworkMemberGroup nmgUpdate = new NetworkMemberGroup(); 
nmgUpdate.setId('enter your NetworkMemberGroup ID : 0DL...'); 
nmgUpdate.setAssignmentStatus('WaitingForRemove'); 
SaveResult\[\] results = connection.update(new SObject\[\] { nmgUpdate });