Newer Version Available

This content describes an older version of this product. View Latest

LightningExperienceSettings

Represents the settings that modify an org’s Lightning Experience configuration. This type extends the Metadata metadata type and inherits its fullName field.

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

File Suffix and Directory Location

A LightningExperienceSettings component has the suffix .settings and is stored in the settings folder. The .settings files are different from other named components because there is only one settings file for each settings component.

Version

LightningExperienceSettings components are available in API version 47.0 and later.

Fields

Field Name Field Type Description
activeThemeName string Specifies the name of the theme that is currently active in the org. This field is available in API version 48.0 and later.
enableAccessCheckCrucPref boolean Deprecated in API version 47.0 and later because the feature is no longer available.
enableApiUserLtngOutAccessPref boolean Deprecated in API version 48.0 and later because the feature is no longer available. This field corresponds to the API Only Users Can Access Only Salesforce APIs critical update, which was enforced in Spring ’20. If a user has the API Only User permission, they can access Salesforce only via APIs, regardless of their other permissions. This restriction already applied to other Salesforce features, but the critical update enforced the restriction in Lightning Out also.
enableAuraCDNPref boolean Indicates whether Lightning Experience and other apps use a content delivery network (CDN) to serve the static content for Lightning Component framework. A CDN generally speeds up page load time, but it also changes the source domain that serves the files. If your company has IP range restrictions for content served from Salesforce, test thoroughly before enabling this setting. The default is true.
enableAuraDepAccessChksCRUCPref boolean Removed in API version 51.0 and later because the feature is no longer available.
enableAuraSecStaticResCRUCPref boolean Indicates whether the Enable Secure Static Resources for Lightning Components release update is enforced (true) or not (false). To improve security, this update serves all static resources from the visualforce domain instead of the lightning domain. This change prevents a script included in a static resource from accessing the document in the lightning domain due to the same-origin security policy. This field is available in API version 50.0 and later.
enableFeedbackInMobile boolean Indicates whether users can send feedback to Salesforce from the mobile app. The default is false.
enableGoogleSheetsForSfdcEnabled boolean Reserved. Do not use.
enableIE11DeprecationMsgHidden boolean Deprecated in API version 47.0 and later because the feature is no longer available.
enableIE11LEXCrucPref boolean Deprecated in API version 47.0 and later because the feature is no longer available.
enableInAppTooltips boolean Indicates whether users see onboarding tips in the mobile app. The default is false.
enableLEXOnIpadEnabled boolean Indicates whether Lightning Experience is turned on for iPad Browsers (true) or not (false). The default is false. See Give Users Access to Lightning Experience on iPad Browsers (Beta) in Salesforce Help.
enableLexEndUsersNoSwitching boolean Indicates whether Salesforce Classic is turned off for your org (true) or not (false). Removes the Switcher for all users in the org. The default is false. See Turn Off Salesforce Classic for Your Org in Salesforce Help. This field is similar to enableUsersAreLightningOnly. If either field is set to true, users are blocked from switching to Salesforce Classic.
enableNavPersonalizationOptOut boolean Indicates whether users are blocked from personalizing the Lightning Experience navigation bar (true) or not (false). The default is false (that is, users can personalize the navigation bar by default). Salesforce recommends disabling personalization at the app level, not the org level. See Configure User Interface Settings in Salesforce Help.
enableNoBackgroundNavigations boolean Indicates whether consecutive API navigation calls in Visualforce pages are allowed (false) or blocked (true). The default is false.
enableRemoveThemeBrandBanner boolean Deprecated in API version 47.0 and later because the feature is no longer available.
enableS1BannerPref boolean Deprecated in API version 47.0 and later because the feature is no longer available.
enableS1BrowserEnabled boolean Indicates whether all users can access the Salesforce mobile web view from a supported mobile browser (true) or not (false). If false, then users must access the Salesforce mobile full site view from a mobile browser. Full site view doesn’t have the full functionality of mobile web view. Salesforce Classic and Lightning Experience aren’t supported on mobile browsers.
enableSkypeChatEnabled boolean Deprecated in API version 50.0 and later because the feature is no longer available.
enableS1DesktopEnabled boolean Indicates whether Lightning Experience is turned on in the org (true) or not (false). After it is enabled, this setting can’t be disabled via the user interface or the API. See Turn on Lightning Experience for Your Org
enableS1UiLoggingEnabled boolean Deprecated in API version 47.0 and later because the feature is no longer available.
enableSparkAllUsers boolean Deprecated in API version 50.0 and later because the feature is no longer available.
enableSparkConversationEnabled boolean Deprecated in API version 50.0 and later because the feature is no longer available.
enableSplitViewOnStandard boolean Removed in API version 52.0 and later because the feature is no longer available.
enableTryLightningOptOut boolean Indicates whether the Try Lightning Experience Now prompt is hidden from users (true) or not (false). The default is false. See Try Lightning Experience Now Prompt in Salesforce Help.
enableUseS1AlohaDesktop boolean Deprecated in API version 47.0 and later because the feature is no longer available.
enableUsersAreLightningOnly boolean Indicates whether Salesforce Classic is turned off for your org (true) or not (false). Removes the Switcher for all users in the org. The default is false. This field is similar to enableLexEndUsersNoSwitching. If either field is set to true, users are blocked from switching to Salesforce Classic.
enableWebExEnabled boolean Deprecated in API version 50.0 and later because the feature is no longer available.
enableWebexAllUsers boolean Deprecated in API version 50.0 and later because the feature is no longer available.
isLEXExtensionComponentCustomizationOff boolean Indicates whether all users can enable the Lightning Extension Component Customization feature. If false, the feature is disabled for all users, even users who had it enabled. See Try New Features with the Lightning Extension for Chrome. This field is available in API version 48.0 and later.
isLEXExtensionDarkModeOff boolean Indicates whether all users can enable the Lightning Extension Dark Mode feature. If false, the feature is disabled for all users, even users who had it enabled. This field is available in API version 48.0 and later.
isLEXExtensionLinkGrabberOff boolean Indicates whether all users can enable the Lightning Extension Link Grabber feature. If false, the feature is disabled for all users, even users who had it enabled. This field is available in API version 48.0 and later.
isLEXExtensionOff boolean Indicates whether all users can enable the Lightning Extension for your org. If false, your users can’t enable the Lightning Extension, even if they already have it installed. This field is available in API version 48.0 and later.

Declarative Metadata Sample Definition

The following is an example of a LightningExperienceSettings component.

1<?xml version="1.0" encoding="UTF-8"?>
2<LightningExperienceSettings xmlns="http://soap.sforce.com/2006/04/metadata">
3
4    <enableAuraCDNPref>true</enableAuraCDNPref>
5    <enableFeedbackInMobile>true</enableFeedbackInMobile>
6    <enableInAppTooltips>true</enableInAppTooltips>
7    <enableLEXOnIpadEnabled>true</enableLEXOnIpadEnabled>
8    <enableLexEndUsersNoSwitching>true</enableLexEndUsersNoSwitching>
9    <enableNavPersonalizationOptOut>true</enableNavPersonalizationOptOut>
10    <enableS1BrowserEnabled>false</enableS1BrowserEnabled>
11    <enableS1DesktopEnabled>true</enableS1DesktopEnabled>
12    <enableTryLightningOptOut>true</enableTryLightningOptOut>
13    <enableUsersAreLightningOnly>true</enableUsersAreLightningOnly>
14</LightningExperienceSettings>

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

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3    <types>
4        <members>LightningExperience</members>
5        <name>Settings</name>
6    </types>
7    <version>47.0</version>
8</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.