CommunitiesSettings

Represents community settings for an org. Enable digital experiences and workspaces. Manage moderation, guest user and partner settings, and more.

In the package manifest, all organization settings metadata types are accessed using the Settings name. See Settings for details.

Parent Type 

This type extends Metadata and inherits its fields.

File Suffix and Directory Location 

CommunitiesSettings values are stored in the Communities.settings file in the settings folder. The .settings files are different from other named components, because there’s only one settings file for each settings component.

Version 

Introduced in API version 47.0.

Fields 

applyLoginPageTypeToEmbeddedLogin 

  • Type: boolean

  • Required: No

  • Introduced: API version 49.0

  • Description: When true, applies the Experience Cloud site login page type (default, Login Discovery, Experience Builder, or Visualforce) to all Embedded Login implementations. When false, applies the username and password login page type to all Embedded Login implementations.

    For orgs created before the Salesforce Summer ‘20 release, the default setting is false. For new orgs, the default setting is true.

blockEmbeddedLoginUnknownURLRedirect 

  • Type: boolean

  • Required: No

  • Introduced: API version 52.0

  • Description: When true, blocks redirects to unknown URLs that are provided in the state parameter of the OAuth response during a server-side callback. Redirects are allowed when the URL is in the same host or domain as the site, or is allow-listed in the Embedded Login salesforce-allowed-domains meta tag. When false, all redirects are allowed.

    For orgs created before the Salesforce Summer ‘21 release, the default setting is false. For new orgs, the default setting is true.

canModerateAllFeedPosts 

  • Type: boolean
  • Required: No
  • Description: When true, allows moderation features, such as flags and rules, to be set on all feed posts including posts that are visible in Experience Cloud sites. When set to false, only feed posts in sites can be moderated. Default is false.

canModerateInternalFeedPosts 

  • Type: boolean
  • Required: No
  • Description: When true, allows moderation features, such as flags and rules, to be set on record feed posts created by internal users. Such posts can also be visible in multiple sites. Default is false.

embeddedVisualforcePages 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows links to Visualforce pages from other Visualforce pages in Salesforce via the API. Default is false.

enableCommunityWorkspaces 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows admins to enable Experience Workspaces.

enableCspContactVisibilityPref 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows users to see contacts from private accounts that they have read access to, when the contact is controlled by the parent record.

enableCspNotesOnAccConPref 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows customer users to access notes and attachments associated with accounts and contacts.

enableEnablePRM 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows admins to enable partner users.

enableExternalAccHierPref 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, enables the External Account Hierarchy object.

enableGuestPermDisOptOutCruc 

  • Type: boolean
  • Required: No

enableGuestRecordReassignOrgPref 

  • Type: boolean
  • Required: No
  • Version: Deprecated in API version 63.0 and later.

Available in API version 48.0 through 63.0.

  • Description: When true, allows admins to set a default owner for records created by guest users.

enableGuestSecurityOptOutCruc 

  • Type: boolean
  • Required: No

enableGuvSecurityOptOutPref 

  • Type: boolean
  • Required: No
  • Introduced: API version 49.0
  • Description: When true, guest user visibility can be turned off.

enableInviteChatterGuestEnabled 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows guest users to be invited to use Chatter.

enableNameFieldsUserPIIEnabled 

  • Type: boolean
  • Required: No

enableNetPortalUserReportOpts 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows external users in Experience Cloud sites, with permission, to run reports.

enableNetworksEnabled 

  • Type: boolean
  • Required: No
  • Introduced: API version 47.0
  • Description: When true, allows users to enable digital experiences.

enableOotbProfExtUserOpsEnable 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows use of standard external profiles for self-registration and user creation.

enablePowerCustomerCaseStatus 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows users with Customer Community Plus licenses to change case status.

enablePreventBadgeGuestAccess 

  • Type: boolean
  • Required: No
  • Introduced: API version 53.0
  • Description: When true, hides badges from guest users in Experience Builder sites.

enablePRMAccRelPref 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, enables Account Relationship object and Account Relationship Data Sharing Rule setup options.

enableRelaxPartnerAccountFieldPref 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, allows editing for partner account fields on and opportunities and leads.

enableUnsupportedBrowserModalPref 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, warnings about unsupported browsers are displayed in Experience Cloud sites.

enableUsernameUniqForOrgPref 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: When true, username uniqueness is set at the org level.

Declarative Metadata Sample Definition 

The following is an example of a CommunitiesSettings component.

1<CommunitiesSettings xmlns="http://soap.sforce.com/2006/04/metadata">
2    <canModerateAllFeedPosts>true</canModerateAllFeedPosts>
3    <canModerateInternalFeedPosts>true</canModerateInternalFeedPosts>
4</CommunitiesSettings>

The following is an example package.xml that references the previous definition.

1<Package xmlns="http://soap.sforce.com/2006/04/metadata">
2<types>
3<members>Communities</members>
4<name>Settings</name>
5</types>
6<version>47.0</version>
7</Package>

Wildcard Support in the Manifest File 

The wildcard character * (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see Settings. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.