Network defines an Experience Cloud site's membership, authentication, availability, email, and engagement settings. It works with an associated CustomSite and separate presentation metadata; it is not the complete definition of the site's pages.
Do not confuse Network with Community, also called Community (Zone). Community defines zones containing Chatter Answers and Ideas, not Experience Cloud sites.
Key Elements
| Element | What the Element Controls |
|---|---|
site |
Required reference to the associated CustomSite. |
picassoSite |
Names the linked SiteDotCom component of ChatterNetworkPicasso type. |
enableSiteAsContainer |
true identifies an Experience Builder site; false identifies a Salesforce Tabs + Visualforce site. |
status |
Required publication and availability state: UnderConstruction, Live, or DownForMaintenance. A published site cannot return to UnderConstruction. |
siteArchiveStatus |
Separate archival state: NotArchived or TemporarilyArchived. A temporarily archived site can be unarchived. |
networkMemberGroups |
Contains the profile and permissionSet entries that determine site membership. |
networkPageOverrides |
Selects page types for login, home, password management, and self-registration. Values are Configurable, Designer, Standard, and VisualForce; it does not supply Visualforce page names. |
networkAuthApiSettings |
Contains headless identity flow enablement, token and reCAPTCHA requirements, Apex handlers, and verification-email restrictions. Headless flows let an application provide its own user interface. |
selfRegistration |
Enables or disables site self-registration. |
selfRegProfile |
Profile assigned to self-registered users. Used only when selfRegistration is enabled. |
emailSenderAddress |
Sender address supplied when the site is first created. Later Metadata API updates are silently ignored, and the address requires verification before use. |
sendWelcomeEmail |
Determines whether adding a new user to the site sends a welcome email. welcomeTemplate selects the template. |
disablePvtPagesForPwdResetInLWR |
Can block private Lightning Web Runtime (LWR) pages until password setup or reset is complete. |
maxFileSizeKb |
Member upload limit, from 3072 KB through the org's maximum file size. An empty value uses the documented 2 GB default limit. |
urlPathPrefix |
The URL path segment that distinguishes this site from other sites on the domain. It is not a metadata-component reference. |
Behavior and Constraints
Availability, publication, and routing
status records lifecycle state as well as availability:
-
UnderConstruction: The site has never been published. Users with Create and Set Up Experiences can access it if their profile is associated with the site. Publication permanently removes the option to return to this state. -
Live: The site is online and members can access it. -
DownForMaintenance: A previously published site is offline. Members cannot access it, but it remains in the site-selection dropdown as SiteName (Offline). Users with Create and Set Up Experiences can still access its setup regardless of profile or membership.
siteArchiveStatus is independent of these availability values. Do not treat TemporarilyArchived as another spelling of DownForMaintenance.
Within networkPageOverrides, the selectors are changePasswordPageOverrideSetting, forgotPasswordPageOverrideSetting, homePageOverrideSetting, loginPageOverrideSetting, and selfRegProfilePageOverrideSetting. Designer selects an Experience Builder page, Standard selects the default page, VisualForce selects a Visualforce page, and Configurable selects a configurable self-registration page.
Assigned Visualforce page names belong in the corresponding CustomSite fields and deploy through that component. The Network selectors specify only the page type. Experience Builder Home and Login pages must be published before they appear as configured choices; unpublished pages appear as Default Page in administration settings.
When enableExperienceBundleBasedSnaOverrideEnabled is true, publishing the experience replaces the existing SNA page with the Builder-based SNA page.
Membership and visibility
Users with one of the profiles or permission sets in networkMemberGroups become site members. Changing an entry therefore changes access according to the actual users assigned that profile or permission set. A Chatter customer from a customer group is not added merely by receiving a permission set associated with the site.
selfRegProfile applies only when selfRegistration is enabled. The communityRoles structure supplies labels through customerUserRole, partnerUserRole, and employeeUserRole; these labels do not assign membership.
Membership does not necessarily identify one site. A user can belong to multiple sites through profile or permission-set membership, as reported in the community discussion below. Runtime code choosing a NetworkId needs the intended site context rather than an arbitrary NetworkMember row.
The visibility and guest-access switches expose different information:
-
enableMemberVisibilityenables the per-site preference to see other members. -
enableGuestMemberVisibilitycontrols whether unauthenticated guests can see authenticated members. -
enableGuestChatterallows unauthenticated access to public Chatter groups. -
enableGuestFileAccessallows guests to view asset files shared with the site on public pages and login pages. Enabling public access at the page or site level in Experience Builder automatically enables this property.
allowInternalUserLogin permits internal credentials on the site login page. embeddedLoginEnabled supports placing the Salesforce login form on an external website. Neither setting replaces membership configuration.
disablePvtPagesForPwdResetInLWR defaults to true for LWR sites except those using custom Visualforce password-management pages. When the restriction applies, users cannot reach private pages until they finish setting up or resetting their password. Custom Visualforce password-management pages must be public so visitors can reach them to complete that process.
Headless identity enablement and request security
All settings in this subsection are nested under networkAuthApiSettings. Enabling a flow does not satisfy its request-security requirements:
-
isHeadlessUserRegistrationAllowedenables headless registration. -
isForgotPwdAllowedenables headless forgot password. - The passwordless-login flag has a capitalization discrepancy between
isPwdlessLoginAllowedandIsPwdlessLoginAllowed, described under Documentation Inconsistencies. -
isFirstPartyAppsAllowedpermits headless flows using the OAuth 2.0 for First-Party Applications draft protocol. -
isUniversalClientRgstrAllowedenables self-registration and passwordless login through Universal Registration API.
The authentication switches require an access token issued to an internal integration user in the initial POST request:
-
doesRegistrationRequireAuthrequires theuser_registration_apiscope. -
doesPwdlessLoginRequireAuthrequires thepwdless_login_apiscope. -
doesForgotPasswordRequireAuthrequires theforgot_passwordscope.
Separately, isRecaptchaRequiredRgstr, isRecaptchaRequiredPwdlessLogin, and isRecaptchaRequiredForgotPwd require a reCAPTCHA token in the corresponding initial request. Despite its name, doesPasswordLoginRequireAuth is documented as requiring reCAPTCHA for headless username-password login using the OAuth 2.0 for First-Party Applications draft protocol.
recaptchaScoreThreshold accepts values from 0.5 through 1 and rejects requests below that score. It applies to reCAPTCHA v3, not v2. The documented prerequisites require recaptchaSecretKey when doesForgotPasswordRequireAuth or doesRegistrationRequireAuth is true, and require the score threshold for applicable v3 implementations. The secret key applies across headless identity flows for which reCAPTCHA is enabled.
Headless handlers and verification emails
registrationHandler references an ApexClass, registrationExecutionUser selects the user who runs it, and registrationUserDefaultProfile references the profile assigned to new registrations. These settings are distinct from the site's selfRegProfile.
headlessDiscoveryHandler references an ApexClass implementing Auth.HeadlessUserDiscoveryHandler. headlessDiscoveryExecutionUser is documented as a user ID, not a developer name.
isUserDisambiguationAllowedForgotPwd enables discovery-based identifiers, such as email addresses or phone numbers, for forgot password. isUserDisambiguationAllowedUsernamePwd enables them for the Authorization Code and Credentials Flow and the first-party-applications login flow. These options let the handler identify users without requiring their username.
Within emailTmplsAllowlist, emailTemplate identifies templates permitted for verification emails. Initial Headless Registration and Headless Passwordless Login requests can supply only an allowlisted email template ID in the emailtemplate parameter. Headless Forgot Password enforces that restriction only when isForgotPwdEmailTemplateAllowlistingEnabled is true.
maxPasswordResetAttempts limits password-reset attempts before the user must request a new one-time password (OTP).
Content controls and engagement
allowedExtensions restricts uploaded file types, while maxFileSizeKb restricts member upload size. allowMembersToFlag sends flagged posts and comments to moderators for review.
enableApexCDNCaching controls caching of public data returned by @wire calls to Apex methods for guests. It applies only to sites using Salesforce's content delivery network (CDN) for Digital Experiences. enableImageOptimizationCDN likewise applies to cached guest images on sites using that CDN.
enableReputation activates point calculation and displayed reputation levels. reputationPointsRules defines points for member actions, and reputationLevels defines the levels. Salesforce uses platform defaults when these definitions are omitted. Each level supplies a lowerThreshold; Salesforce calculates its upper bound.
disableReputationRecordConversations excludes record contributions from reputation-point counting when enabled. Reputation settings affect recognition and engagement, not access grants.
Recommendations use nested configuration rather than a single ordered list:
-
recommendationAudiencedefines audiences. ItsaudienceCriteriaTypeisCustomListorMaxDaysInCommunity.audienceCriteriaValueis the maximum membership age in days forMaxDaysInCommunityand is null forCustomList. -
recommendationDefinitioncontains recommendation details and nested schedules. EachscheduledRecommendationDetailsentry selectsrecommendationAudienceby audience name and chooses achannel. -
DefaultChanneluses predefined locations.CustomChannel1throughCustomChannel5can be placed using the Recommendations Carousel component in Experience Builder. -
rankcontrols display position within a channel. Inserting at a rank shifts later recommendations down. An omitted rank, or one beyond the list size, appends the recommendation. - Setting a schedule's
enabledtofalseremoves the recommendation from sites. Existing recommendations in Salesforce mobile web feeds remain, but no new ones appear there.
Deployment and Retrieval
In Metadata API format, Network components reside in the networks directory. The filename matches the site name and uses the .network extension. The type supports * in a package.xml manifest. See the Network metadata reference.
The required fields include site, status, tabs, emailSenderAddress, emailSenderName, and forgotPasswordTemplate. The associated CustomSite supplies configuration that Network does not contain, including assigned Visualforce page overrides. ExperienceBundle can be involved in deploying the site's presentation; its content is not nested within Network.
A retrieved definition is not a guarantee that every returned field can be updated:
-
emailSenderAddresscan be supplied only on the initial deployment that creates the site. Verify the address before using it. Later Metadata API changes to this field are ignored without an error. Change it in the site's Administration workspace under Emails instead. -
chgEmailVerNewTemplateandchgEmailVerOldTemplatecannot be updated through Metadata API, even when present in a retrieved definition.
newSenderAddress records a requested but unverified replacement sender. Successful verification causes it to replace emailSenderAddress. pendingSecondaryEmailAddress similarly represents a secondary sender awaiting verification; Salesforce does not send from it before verification.
secondaryEmailSenderEnabled determines whether messages containing sensitive data use a secondary sender instead of email relay. Its default is false.
Site notification fields reference EmailTemplate components for password management, welcome messages, identity verification, case comments, and related events. Lightning email templates are not packageable; Classic templates are recommended for the documented notification fields. Do not treat every template value as a developer name: deviceActEmailTemplate is documented as an email template ID, and headless request parameters also use template IDs.
For a "no Network named ... found" error, check actual build inclusion and file recognition, not merely whether a file exists in source control. Community reports distinguish a missing Network component in the build from a tool failing to recognize a filename. Those reports do not establish a universal requirement to rename Metadata API files or deploy related components in a fixed sequence.
Relationships
Network connects site-level configuration to the underlying site, membership components, templates, handlers, tabs, and document images. Navigation and site branding use separate NavigationMenu and NetworkBranding components. Incoming references from these components do not make them child definitions contained in the Network asset.
References
-
ApexClass:networkAuthApiSettings.registrationHandler,networkAuthApiSettings.headlessDiscoveryHandler. -
CustomSite:site. -
CustomTab: tab associations throughtabs.customTab,tabs.defaultTab, andtabs.standardTab.defaultTabselects the first page members see after login. -
Document:emailFooterLogo,reputationLevels.level.branding.smallImage. The footer logo uses a document name; reputation images are also stored as documents. -
EmailTemplate:caseCommentEmailTemplate,changePasswordTemplate,chgEmailVerNewTemplate,chgEmailVerOldTemplate,deviceActEmailTemplate,forgotPasswordTemplate,lockoutTemplate,pwdlessRegEmailTemplate,selfRegMicroBatchSubErrorEmailTemplate,verificationTemplate,welcomeTemplate,networkAuthApiSettings.emailTmplsAllowlist.emailTemplate. -
PermissionSet:networkMemberGroups.permissionSet. -
Profile:networkMemberGroups.profile,selfRegProfile,networkAuthApiSettings.registrationUserDefaultProfile. -
SiteDotCom:picassoSite.
Referenced By
-
AppMenu:name. -
Audience:container. -
ContentAsset:originNetwork. -
NavigationMenu:container. -
NetworkBranding:network.
Documentation Inconsistencies
The headless passwordless-login flag has a consequential capitalization mismatch: the exposed element schema uses isPwdlessLoginAllowed, while Salesforce's field table spells it IsPwdlessLoginAllowed. Do not silently treat the two spellings as identical when diagnosing an element-name problem.
doesPasswordLoginRequireAuth is also potentially misleading. Its documented behavior requires reCAPTCHA for the specified headless username-password flow, unlike the similarly named registration, passwordless-login, and forgot-password settings that require integration-user access tokens.
Reported Issues
-
Selecting one membership row can choose the wrong site. A 2021 report confirmed that the same user could belong to multiple sites through profile or permission-set membership, with
NetworkMemberreturning a row for each site. The reported approaches were to filter for the intended site or pass itsNetworkIdexplicitly. Multiple-site membership discussion. -
Blank
$Networkemail merge fields may reflect sending context, not missing metadata. A discussion beginning in 2020 reported empty values during ordinary Visualforce template tests; a 2021 response associated them with execution outside community context. A 2024 respondent also reported failure when sending a Visualforce welcome template throughMessaging.SingleEmailMessagewithsendWelcomeEmail=false. These are runtime email-context reports, not metadata reference-resolution rules. Blank Network merge-field discussion. -
A deployment can report a missing Network when the build omits it. In a 2021 Experience Cloud deployment discussion, a response identified inclusion of
Network, alongsideCustomSiteandExperienceBundle, as the issue to check even though files existed in the branch. Missing Network deployment discussion. -
File recognition can cause the same missing-Network symptom. In the same discussion, a 2023 respondent who already had the related components in the commit reported successful validation after changing the filename from
.networkto.network-meta.xml. This was a tool/file-format observation, not a universal Metadata API rename procedure. Filename recognition report.
Common Questions
Does retrieving Network retrieve the whole Experience Cloud site?
No. Network contains site-level settings. The associated CustomSite, presentation metadata, NavigationMenu, and NetworkBranding are separate components.
Why does deploying emailSenderAddress leave the old address unchanged?
Metadata API accepts emailSenderAddress only when initially creating the site. Later updates are silently ignored. Change the address in the site's Administration workspace under Emails and complete verification.
Can I change a published Network back to UnderConstruction?
No. After publication, the site cannot return to UnderConstruction. DownForMaintenance represents a previously published site taken offline; archival is controlled separately by siteArchiveStatus.
Why does deployment say "no Network named ... found" when the file exists?
Community reports identify both omission from the actual build and tool-specific filename recognition as possible causes. One respondent resolved validation by changing .network to .network-meta.xml, but that is not a universal rule for Metadata API files.
Why is a headless identity request rejected when the flow is enabled?
Flow enablement is separate from request security. Depending on networkAuthApiSettings, the initial request can require an integration-user token with the appropriate scope, a reCAPTCHA token, an acceptable reCAPTCHA score, and an allowlisted verification-email template ID.