SecuritySettings
Represents an org’s security settings. For example, settings define trusted IP ranges for network access, password and login requirements, session expiration, and single sign-on settings.
In the package manifest, all organization settings metadata types are accessed using the Settings name. See Settings for more details.
This type extends Metadata and inherits its fields.
SecuritySettings values are stored in a single file named Security.settings in the settings directory. The .settings files are different from other named components because there’s only one settings file for each settings component.
Security settings are available in API version 27.0 and later. API versions 26 and earlier are no longer available.
-
Type: boolean
-
Required: No
-
Description: If
true, users can grant login access to Support. Iffalse, only an admin can grant login access.Users can’t grant login access to managed packages that are licensed to your entire Salesforce org. Only admins with the Manage Users permission enabled on their profiles can grant access to these publishers. Also, some managed packages don’t have login access. If a package isn’t listed on the Login Access Policies page, login access isn’t available for that package.
- Type: boolean
- Required: No
- Description: If
true, the Administrators Can Log in as Any User field is enabled. The default isn’t enabled (false).
- Type: boolean
- Required: No
- Introduced: API version 47.0
- Description: If
true, this setting enables audit fields and updating the owner for records that are owned by inactive users. The default value isfalse.
- Type: boolean
- Required: No
- Introduced: API version 47.0
- Description: If
true, this setting prevents the creation of function expressions in dynamically created Aura components. The default isfalse.
- Type: boolean
- Required: No
- Introduced: API version 55.0
- Description: Indicates whether the Cross-Origin Embedder Policy (COEP) response header is applied to this org’s custom Visualforce pages (
true) or not (false). Iftrue, externally sourced embedded content loads only when the external origin allows it via CORS or CORP. The default value isfalse.
- Type: boolean
- Required: No
- Introduced: API version 55.0
- Description: Indicates whether the Cross-Origin Opener Policy (COOP) response header is applied to this org’s custom Visualforce pages (
true) or not (false). Iftrue, each custom Visualforce page opens in a new browsing context group. The default value isfalse.
-
Type: boolean
-
Required: No
-
Version: Available in API version 59.0 to 60.0.
-
Description: Indicates whether redirections to other Salesforce orgs are allowed (
true) or blocked (false). In Summer ’24 and later, this field is alwaysfalse.This setting applies to user redirections to another Salesforce org via a direct link, a post-action URL, or a post-login URL in Salesforce. An example of a direct link with a redirection is
<a href="/?startURL=targetUrl">linkText">linkText</a>. Post-action URLs and post-login URLs use a protected URL redirect parameter, such asretURL,startURL,saveURL,cancelURL, andtargetURL. Subsequent redirections can’t be verified because they occur outside Salesforce.To allow cross-org redirections, add the URLs for the Salesforce orgs that you own to RedirectWhitelistUrl.
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Introduced: API version 68.0
- Description: Indicates whether unauthenticated guest users can access GraphQL API (
true) or not (false). The default value isfalse.
- Type: boolean
- Required: No
- Introduced: API version 59.0
- Description: Indicates whether the pages that Salesforce serves for this org include the
Permissions-PolicyHTTP header. This HTTP header controls access to browser features such as cameras and microphones. When this field isfalse, access to the browser features is always permitted. The default value isfalse.
- Type: boolean
- Required: No
- Version: Deprecated in API version 47.0 and later.
- Description:
-
Type: PermissionsPolicy (enumeration of type string)
-
Required: No
-
Introduced: API version 59.0
-
Description: When
enablePermissionsPolicyistrue, indicates when apps and websites loaded from Salesforce can access the user’s camera.If
enablePermissionsPolicyisfalse, this field has no effect. -
Possible values:
- Always — All apps and websites loaded from Salesforce can access the user’s camera.
- Never — No apps or websites, including scripts from Salesforce domains, can access the user’s camera.
- TrustedUrls — Only CspTrustedSite entries with
canAccessCameraset totruecan access the user’s camera.
-
Type: Permissions Policy (enumeration of type string)
-
Required: No
-
Introduced: API version 59.0
-
Description: When
enablePermissionsPolicyistrue, indicates when apps and websites loaded from Salesforce can access the user’s microphone.If
enablePermissionsPolicyisfalse, this field has no effect. -
Possible values:
- Always — All apps and websites loaded from Salesforce can access the user’s microphone.
- Never — No apps or websites, including scripts from Salesforce domains, can access the user’s microphone.
- TrustedUrls — Only CspTrustedSite entries with
canAccessMicrophoneset totruecan access the user’s microphone.
- Type: boolean
- Required: No
- Version: Removed in API version 51.0 and later.
- Description: Indicates whether connections to or from your Salesforce org must use TLS 1.2 or higher (
true) or not (false). This field has a default value offalse.
- Type: boolean
- Required: No
- Version: Removed in API version 51.0 and later.
- Description: Indicates whether connections with your Salesforce sites and portals or Experience Cloud sites must use TLS 1.2 or higher (
true) or not (false). This field has a default value offalse.
- Type: NetworkAccess
- Required: No
- Description: The trusted IP address ranges from which users can always log in without requiring computer activation.
- Type: PasswordPolicies
- Required: No
- Description: The requirements for passwords and logins, and assistance with retrieving forgotten passwords.
- Type: boolean
- Required: No
-
Type: boolean
-
Required: No
-
Introduced: API version 59.0
-
Description: In rare cases, Salesforce can’t identify whether the requesting app or specialized browser supports the
Content-Security-Policy: frame-ancestorsHTTP header directive. In those cases, this field indicates whether that directive is included in (true) or omitted from (false) the HTTP response header for pages that Salesforce serves for this org. The default value isfalse.When
sendCspForUncommonClientsistrue, users who access Salesforce via an app or browser that doesn’t support theContent-Security-Policy: frame-ancestorsHTTP header directive can experience errors if that lack of support is unclear.
- Type: SessionSettings
- Required: No
- Description: The settings for session expiration and security.
- Type: SingleSignOnSettings
- Required: No
- Description: The settings for single sign-on (SSO).
Defines a range of trusted IP addresses for network access.
- Type: string
- Required: No
- Introduced: API version 34.0
- Description: The description of the trusted IP range. Use this field to identify the range, such as which corporate network corresponds to this range.
- Type: string
- Required: No
- Description: The IP address that defines the high end of a range of trusted addresses.
- Type: string
- Required: No
- Description: The IP address that defines the low end of a range of trusted addresses.
Represents your org’s trusted IP address ranges for network access.
-
Type: IpRange[]
-
Required: No
-
Description: The trusted IP address ranges from which users can always log in without requiring computer activation.
To add an IP range, deploy all existing IP ranges, including the one you want to add. Otherwise, the existing IP ranges are replaced with the ones you deploy. To remove all the IP ranges, leave the networkAccess field blank (
).
Represents your org’s password and login policies, which show up under Security Controls | Password Policies .
- Type: string
- Required: No
- Description: The URL to which users with the API Only User permission are redirected instead of the login page.
- Type: Complexity (enumeration of type string)
- Required: No
- Description: The types of characters that must be used in a user’s password.
- Possible values:
- NoRestriction — Has no requirements and is the least secure option.
- AlphaNumeric — The default setting. Requires at least one alphabetic character and one number. This value is the default value.
- SpecialCharacters — Requires at least one alphabetic character, one number, and one of the following characters:
! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _{ | } ~`. - UpperLowerCaseNumeric — Requires at least one number, one uppercase letter, and one lowercase letter. This value is available in API version 31.0 and later.
- UpperLowerCaseNumericSpecialCharacters — Requires at least one number, one uppercase letter, one lowercase letter, and one of the following characters:
! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _{ | } ~`. This value is available in API version 31.0 and later. - Any3UpperLowerCaseNumericSpecialCharacters — Requires at least three of the following options: one number, one uppercase letter, one lowercase letter, and one special character (
! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _{ | } ~`). This value is available in API version 46.0 and later.
- Type: boolean
- Required: No
- Version: Deprecated in API version 51.0.
Removed in API version 52.0.
- Description:
- Type: Expiration (enumeration of type string)
- Required: No
- Description: The length of time until a user password expires and must be changed.
- Possible values:
- Never
- ThirtyDays
- SixtyDays
- NinetyDays — . This value is the default value.
- SixMonths
- OneYear
- Type: string
- Required: No
- Description: The number of previous passwords saved for users so that they must always reset a new, unique password. Valid values are
0through24passwords remembered. The maximum value of 24 applies to API version 31.0 and later. In earlier versions, the maximum value is 16. The default value is3.
- Type: LockoutInterval (enumeration of type string)
- Required: No
- Description: The duration of the login lockout.
- Possible values:
- FifteenMinutes — . This value is the default value.
- ThirtyMinutes
- SixtyMinutes
- Forever — (must be reset by admin)
- Type: MaxLoginAttempts (enumeration of type string)
- Required: No
- Description: The number of login failures allowed for a user before the user is locked out.
- Possible values:
- NoLimit
- ThreeAttempts
- FiveAttempts
- TenAttempts — . This value is the default value.
- Type: string
- Required: No
- Introduced: API version 35.0
- Description: The minimum number of characters required for a password. The number can contain from 5 to 50 characters (default is 8). Before API version 35.0, specify minimum password length with the enumeration
minPasswordLength, with valid valuesFiveCharacters,EightCharacters(default),TenCharacters,TwelveCharacters(API version 31.0 and later), andFifteenCharacters(API version 34.0 and later).
- Type: boolean
- Required: No
- Introduced: API version 31.0
- Description: If Require a minimum 1 day password lifetime is enabled (
true), passwords can’t be changed more than one time during a 24-hour period. The default isfalse.
-
Type: boolean
-
Required: No
-
Description: If enabled (
true), hide answers to security questions as the user types. The default isfalse.If your org uses the Microsoft Input Method Editor (IME) with the input mode set to Hiragana, when you type ASCII characters, they’re converted in to Japanese characters in normal text fields. However, the IME doesn’t work properly in fields with obscured text. If your org’s users can’t properly enter their passwords or other values after enabling this feature, disable the feature.
- Type: string
- Required: No
- Description: The text that appears in the Account Lockout email and at the bottom of the Confirm Identity screen for users resetting their passwords.
- Type: string
- Required: No
- Description: The URL that users can click to retrieve forgotten passwords.
- Type: QuestionRestriction (enumeration of type string)
- Required: No
- Description: The restriction on whether the answer to the password hint question can contain the password itself.
- Possible values:
- None
- DoesNotContainPassword — . This value is the default value.
Represents your org’s session expiration and security settings.
- Type: boolean
- Required: No
- Introduced: API version 47.0
- Description: If enabled (
true), users can authenticate with a PEM-encoded X.509 digital certificate. Not enabled by default.
- Type: boolean
- Required: No
- Description: If enabled (
true), authentication certificates are validated using the Online Certificate Status Protocol (OCSP) or a Certificate Revocation List (CRL).
-
Type: boolean
-
Required: No
-
Description: If
true, dynamic boxcar optimization for the Aura framework is disabled. With dynamic boxcar optimization, a limited number of server-side Aura actions are grouped in a single network request, which improves the performance of Lightning components and apps. For more information, see Boxcar Grouping and Optimization in the Lightning Aura Components Developer Guide.The default value is
false.
- Type: boolean
- Required: No
- Introduced: API version 47.0
- Description: If Require email confirmations for email address changes is enabled (
true), when users change their email address, they receive an email at the new address with a link. After they click the link, their new email address takes effect. For orgs created before Winter ’20, the field isn’t enabled by default. For new orgs, this field is always enabled. To disable the field (not recommended), contact Salesforce Customer Support.
-
Type: boolean
-
Required: No
-
Introduced: API version 48.0
-
Description: Prevents identity verification by email for users who have registered other verification methods, such as SMS or Salesforce Authenticator. If no other verification methods are configured, users are verified by email.
By default, this setting is disabled (
false) for existing orgs. For new orgs, this setting is enabled (true) by default.
- Type: boolean
- Required: No
- Description: Indicates whether the session timeout warning popup is disabled (
true) or enabled (false).
- Type: boolean
- Required: No
- Description: Indicates whether users can verify their identity with a built-in authenticator that’s already on their device (
true), such as Touch ID or Windows Hello, or not (false). The default value isfalse.
- Type: boolean
- Required: No
- Description: Indicates whether the user’s browser is allowed to store usernames and auto-fill the
User Namefield on the login page (true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether clickjack protection for non-setup Salesforce pages is enabled (
true) or disabled (false).
- Type: boolean
- Required: No
- Description: Indicates whether clickjack protection for customer Visualforce pages with standard headers turned on is enabled (
true) or disabled (false).
- Type: boolean
- Required: No
- Introduced: API version 34.0
- Description: Indicates whether clickjack protection for customer Visualforce pages with standard headers turned off is enabled (
true) or disabled (false).
- Type: boolean
- Required: No
- Description: Indicates whether clickjack protection for setup pages is enabled (
true) or disabled (false).
- Type: boolean
- Required: No
-
Type: boolean
-
Required: No
-
Introduced: API version 39.0
-
Description: Indicates whether the browser is prevented from inferring the MIME type from the document content and from executing malicious files (JavaScript, Style sheet) as dynamic content.
In API version 58.0 and later,
enableContentSniffingProtectionis alwaystrue.
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether a content security policy is enabled for the email template. A content security policy helps prevent cross-site scripting attacks by listing allowed sources of images and other content.
- Type: boolean
- Required: No
- Description: Indicates whether Cross-Site Request Forgery (CSRF) protection on GET requests on non-setup pages is enabled (
true) or disabled (false).
- Type: boolean
- Required: No
- Description: Indicates whether Cross-Site Request Forgery (CSRF) protection on POST requests on non-setup pages is enabled (
true) or disabled (false).
- Type: boolean
- Required: No
- Introduced: API version 47.0
- Description: If enabled (
true), users can use Lightning Login (Salesforce Authenticator) to log in instead of a password.
- Type: boolean
- Required: No
- Introduced: API version 47.0
- Description: If enabled (
true), only users with the Lightning Login User permission can log in with Salesforce Authenticator instead of a password.
- Type: boolean
- Required: No
- Description: Requires all users in your Salesforce org to provide an additional verification method when logging in directly to the UI with their username and password. Users who are already enabled via the Multi-Factor Authentication for User Interface Logins user permission experience no change. The Waive Multi-Factor Authentication for Exempt Users user permission overrides this setting.
-
Type: boolean (enumeration of type string)
-
Required: No
-
Introduced: API version 50.0
-
Description: If set to
true, enables Cross-Origin Resource Sharing (CORS) for these OAuth endpoints:Default setting is
false. -
Possible values:
- /services/oauth2/token
- /services/oauth2/revoke
- /services/oauth2/introspect
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Introduced: API version 31.0
- Description: Indicates whether cross-domain session information is exchanged using a POST request instead of a GET request, such as when a user is using a Visualforce page. In this context, POST requests are more secure than GET requests.
- Type: boolean
- Required: No
- Description: If enabled (
true), the default, users can receive a one-time password in a text message (SMS) to verify their identity. Users must verify their mobile phone number before they can receive SMS messages.
- Type: boolean
- Required: No
- Introduced: API version 47.0
- Description: If enabled (
true), users can use a physical U2F-compatible security key for multi-factor authentication (MFA) and identity verification. The default isfalse.
-
Type: boolean
-
Required: No
-
Version: This field is available in API version 42.0 to 60.0.
-
Description: Indicates whether HTTPS is required for connecting to third-party domains.
This setting is enabled by default on accounts created after the Summer ’17 release.
-
Type: boolean
-
Required: No
-
Version: This field is available in API version 39.0 to 59.0.
-
Description: Indicates whether the HTTP
X-XSS-Protectionresponse header is enabled to protect against reflected cross-site scripting attacks.The HTTP
X-XSS-Protectionresponse header is deprecated. To help prevent cross-site scripting (XSS) and other code injection attacks, use the CSPTrustedSite metadata type.
- Type: boolean
- Required: No
- Introduced: API version 34.0
- Description: If
true, the IP addresses in Login IP Ranges are enforced when a user accesses Salesforce (on every page request), including access from a client app. Iffalse, the IP addresses in Login IP Ranges are enforced only when a user logs in. This field affects all user profiles with login IP restrictions.
- Type: boolean
- Required: No
- Introduced: API version 50.0
- Description: If enabled, and a UserDevice’s status is set to revoked, that device can’t log in from a Salesforce app. Logins from browsers aren’t affected.
- Type: boolean
- Required: No
- Introduced: API version 31.0
- Description: If enabled (
true), the default, when sessions time out for inactive users, current sessions become invalid. The browser refreshes and returns to the login page. To access the org, the user must log in again.
- Type: boolean
- Required: No
- Description: If
true, an admin who is logged in as another user must log in again to their original session, after logging out as the secondary user. Iffalse, the admin isn’t required to log in again.
- Type: string
- Required: No
- Type: string
- Required: No
- Type: boolean
- Required: No
- Description: If you enable Remember me until logout (
true), usernames (login hints) are cached until the user logs out. If a session times out, usernames appear on the Switcher as inactive. Iffalse(default), usernames aren’t cached for SSO sessions.
-
Type: boolean
-
Required: No
-
Description: If Enable user switching is
true(default), users can log in to other orgs by selecting their profile picture and using the Switcher. You must also enable the Enable caching and autocomplete on login page setting.If
false, the Switcher isn’t enabled and your org doesn’t appear in Switchers on other orgs.
- Type: boolean
- Required: No
- Introduced: API version 41.0
- Description: Indicates whether Visualforce, Salesforce sites, or Experience Cloud sites must use HTTPS.
- Type: boolean
- Required: No
- Introduced: API version 42.0
- Description: Indicates whether a user’s identity is confirmed when changing their email address, instead of requiring a relogin.
- Type: boolean
- Required: No
- Introduced: API version 40.0
- Description: Indicates whether users are required to confirm their identities when adding a verification method such as Salesforce Authenticator for multi-factor authentication (MFA), instead of requiring a relogin. (Multi-factor authentication was formerly called two-factor authentication.)
- Type: string
- Required: No
- Introduced: API version 47.0
- Description: The API version that Lightning Locker enforces for security of custom Lightning components. The default value matches the Salesforce API version of the current release. Only valid Salesforce API versions between 46.0 and the current release can be specified. The version must be specified as a string in the format
"nn.0", such as"48.0". This setting has no effect on thelockerServiceNextsetting, which enables Lightning Web Security.
- Type: boolean
- Required: No
- Description: If
true, a stricter Content Security Policy is enabled to disallow theunsafe-inlinesource for thescript-srcCSP directive. Script tags can’t be used to load JavaScript, and event handlers can’t use inline JavaScript. Lightning Locker and Lightning Web Security depend on this setting to be enabled to protect Lightning components.
- Type: boolean
- Required: No
- Introduced: API version 53.0
- Description: If
true, Lightning Web Security is used instead of Lightning Locker to protect Lightning web components. Lightning Locker continues to protect Aura components. Iffalse, Lightning Locker protects Lightning web components and Aura components.
- Type: boolean
- Required: No
- Description: Reserved for internal use.
- Type: boolean
- Required: No
- Description: Reserved for internal use.
- Type: string
- Required: No
- Description: Reserved for internal use.
- Type: boolean
- Required: No
- Introduced: API version 33.0
- Description: Indicates whether the current UI session for a user is associated with a specific domain. This check helps prevent unauthorized use of the session ID in another domain. The value is
trueby default for orgs created with the Spring ’15 release or later.
- Type: boolean
- Required: No
- Description: Indicates whether user sessions are locked to the IP address from which the user logged in (
true) or not (false).
- Type: string
- Required: No
- Introduced: API version 34.0
- Description: The URL to which users are redirected when they log out of Salesforce. If no value is specified, the default is
https://MyDomainName.my.salesforce.com.
-
Type: boolean
-
Required: No
-
Description: If
true, users can’t access untrusted URLs outside the Salesforce domains via links in URL or Long Text Area fields. When a user who accesses Salesforce via Salesforce Classic clicks the link, a message informs the user that they can’t access the page because the external site isn’t trusted. The default isfalse.To specify the URLs that you trust, use the RedirectWhitelistUrl Metadata type.
The
redirectBlockModeEnabledandredirectionWarningfields are mutually exclusive. Only one of those fields can betrue.Available in API 56.0 and later.
-
Type: boolean
-
Required: No
-
Introduced: API version 42.0
-
Description: If
true, users who accesses Salesforce via Salesforce Classic see an alert when they click a link in a URL or Long Text Area field that redirects them to an untrusted URL outside the Salesforce domains. The default istruein orgs created in Spring ’18 and later andfalsein orgs created in Winter ’18 and earlier.To specify the URLs that you trust, use the RedirectWhitelistUrl Metadata type.
The
redirectBlockModeEnabledandredirectionWarningfields are mutually exclusive. Only one of those fields can betrue.
- Type: boolean
- Required: No
- Introduced: API version 42.0
- Description: If
true, pages served by Salesforce for this org include thereferrer-policyHTTP header with the directive defined byreferrerPolicyDirective. Iffalse, that HTTP header isn’t included and requests can always see the full URL of the Salesforce page. The default istrue. In API version 42.0–57.0, ifreferrerPolicyistrue, pages served by Salesforce for this org include thereferrer-policyHTTP header with theorigin-when-cross-origindirective.
-
Type: string (enumeration of type string)
-
Required: No
-
Introduced: API version 58.0
-
Description: The HTTP referrer policy directive for pages served by Salesforce. The default is
strict-origin-when-cross-origin. IfreferrerPolicyisfalse, this value has no effect. Valid current values are:These policies are deprecated. Although the values are valid, they aren’t recommended.
For more information on HTTP referrer policy directives, including examples, see the Referrer-Policy entry in the MDN Docs HTTP Guide.
-
Possible values:
-
no-referrer — Never include the referrer.
-
origin — Always send the origin only.
-
same-origin — Omit the referrer for cross-origin requests.
-
strict-origin — For requests with the same protocol level (HTTPS to HTTPS), send the origin only. Omit the referrer when the target website is on a downgraded protocol. An example of a downgraded protocol is a request made from an HTTPS URL to an HTTP site.
-
strict-origin-when-cross-origin — For same-origin requests, send the full referrer URL. For cross-origin requests with the same protocol level (HTTPS to HTTPS), send the origin only. Omit the referrer when the target website is on a downgraded protocol. This is the default.
-
no-referrer-when-downgrade — Omit the referrer when the target website is on a downgraded protocol. For example, when making a request to an HTTP site from an HTTPS URL.
This
referrerPolicyDirectiveisn’t recommended because this policy exposes the full URL of the page to cross-origin requests to the same or a higher protocol level. For example, requests from HTTPS to HTTPS and requests from HTTP to either HTTP or HTTPS. -
origin-when-cross-origin — Send the origin only for cross-domain requests or when the target website is on a downgraded protocol. An example of a downgraded protocol is a request made from an HTTPS URL to an HTTP site.
This
referrerPolicyDirectiveisn’t recommended because multiple browsers no longer support it. Usestrict-origin-when-cross-origininstead. -
unsafe-url — Always include the full referrer URL.
This
referrerPolicyDirectiveisn’t recommended because this policy exposes the full URL of the page to requests from insecure origins.
-
-
Type: boolean
-
Required: No
-
Introduced: API version 40.0
-
Description: Sets the
HttpOnlyattribute on session cookies, making them inaccessible via JavaScript. Iftrue, session ID cookie access is restricted. Iffalse, access isn’t restricted.If you have a custom or packaged application that uses JavaScript to access session ID cookies, your application breaks if
requireHttpOnlyis set totrue. The application can’t access the cookie.
- Type: boolean
- Required: No
- Version: This field is available in API version 40.0 to 60.0.
- Description: Determines whether HTTPS is required to log in to or access Salesforce. This option is enabled by default for security reasons and can’t be disabled. To change to HTTP, contact Salesforce Customer Support.
- Type: boolean
- Required: No
- Version: Deprecated in API version 36.0 to 50.0.
Removed in API version 51.0 and later.
- Description:
- Type: boolean
- Required: No
- Type: SessionTimeout (enumeration of type string)
- Required: No
- Description: The length of time after which users without activity are prompted to log out or continue working.
- Possible values:
- FifteenMinutes
- ThirtyMinutes
- SixtyMinutes
- NinetyMinutes — Available in API version 58.0 and later.
- TwoHours
- FourHours
- EightHours
- TwelveHours
- TwentyFourHours — Available in API version 38.0 and later.
-
Type: boolean
-
Required: No
-
Introduced: API version 59.0
-
Description: If
true, a Lightning app replaces the authentication cookie with a session token when the Lightning app is in a third-party context, such as Lightning Out.Browsers are restricting the use of third-party cookies. This org setting is an alternative for the authentication cookie to requiring that users disable browser settings, such as Safari’s
Prevent cross-site trackingsetting.
-
Type: boolean
-
Required: No
-
Description: Indicates which screen users see first when they’re prompted to register a verification method for multi-factor authentication (MFA).
If
true, users see a list of all supported verification methods.If
false, users see only the Salesforce Authenticator option. To see a list of all supported verification methods, users must navigate to a new page.
- Type: boolean
- Required: No
- Description: Indicates what happens to a user’s UI sessions when an admin resets that user’s password. If
true, all of the user’s UI sessions are terminated. Iffalse, no UI sessions are terminated.
- Type: boolean
- Required: No
- Introduced: API version 67.0
- Description: Indicates whether to disable HTML sanitization when using the
aura:unescapedHtmlcomponent.
-
Type: UntrustedRedirectEnum
-
Required: No
-
Introduced: API version 64.0
-
Description: The redirection behavior when a user who accesses Salesforce via Lightning Experience clicks a hyperlink in a URL field with a target URL that isn’t trusted.
To specify the URLs that you trust, use the RedirectWhitelistUrl Metadata type.
Secure redirections to untrusted URLs in Lightning Experience is a pilot or beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this pilot or beta service is at the Customer’s sole discretion.
-
Possible values:
- AlwaysAllowed
- NeverAllowed
- WithUserPermission
- Type: boolean
- Required: No
-
Type: boolean
-
Required: No
-
Description: Redirects all expired tabs in your browser to your custom logout URL (
true). By default, this option is enabled for all new orgs and is available in API version 52.0 and later.For orgs created prior to the Summer ’21 release, the default setting is
false. Before enabling this setting, review these considerations.- This setting uses the browser’s local storage to store the custom logout URL.
- Verify that this setting doesn’t interfere with your custom login integrations.
- Type: VfInlineScriptInjection (enumeration of type string)
- Required: No
- Introduced: API version 67.0
- Description: Reserved for future use. The default value is
allow.
- Type: string
- Required: No
- Introduced: API version 63.0
- Description: Custom email template for the welcome email that new internal users receive when they’re registered. This field supports only Classic email templates.
Represents your org’s single sign-on (SSO) settings. These settings are available API version 47.0 and later.
- Type: boolean
- Required: No
- Description: If you enable Make Federation ID case-insensitive (
true), the Federation ID field on a user object isn’t case-sensitive. If disabled (false), the Federation ID field remains case-sensitive. The default isfalse.
- Type: boolean
- Required: No
- Description: If you enable Force Delegated Authentication Callout (
true), a callout to the SSO endpoint occurs regardless of login restriction failures. If disabled (false), the default, and if a user’s first login attempt fails due to login restrictions within the Salesforce org, a call isn’t made to the SSO endpoint.
- Type: boolean
- Required: No
- Description: If
true(default), you can configure multiple SAML providers. After enabling the setting, it can’t be disabled.
- Type: boolean
- Required: No
- Description: If you enable User Provisioning Enabled (
true), you can provision users through a SAML assertion (called just-in-time provisioning). RequiresEnableSamlLoginto betrueandenableMultipleSamlConfigsto befalse. The default is enabled (false).
- Type: boolean
- Required: No
- Description: If you enable **SAML Enabled ** (
true), users can SSO into Salesforce from providers via SAML. The default isn’t enabled (false).
-
Type: boolean
-
Required: No
-
Description: If Disable login with Salesforce credentials is
true, users are redirected to third-party identity providers for authentication. The default is enabled (false).If you enabled this feature prior to the Summer ’20 release and want to disable it prior to July 27, 2020, contact Customer Support.
Here’s a sample security.settings metadata file.
The following is an example package.xml manifest that references the previous definition.
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.