ProfileSessionSetting

Represents a profile’s session settings. Use ProfileSessionSetting to retrieve the session settings for a given profile.

Parent Type 

This type extends Metadata and inherits its fields.

File Suffix and Directory Location 

ProfileSessionSetting components have the suffix .profileSessionSetting and are stored in the profileSessionSettings folder.

Version 

Introduced in API version 40.0.

Fields 

externalCommunityUserIdentityVerif 

  • Type: boolean
  • Required: Yes

forceLogout 

  • Type: boolean
  • Required: Yes

profile 

  • Type: string
  • Required: Yes
  • Description: Required. Name of the user profile.

requiredSessionLevel 

sessionPersistence 

  • Type: boolean
  • Required: Yes
  • Description: Beta. If true, keep users logged in to their Experience Cloud site until the session times out—even if they close their browser. Use sessionPersistence to reduce how often users must log in to their site. Applies only to the External Identity profile.

sessionTimeout 

  • Type: int (enumeration of type string)
  • Required: Yes
  • Description: Required. Specifies how many minutes of inactivity elapse before a user’s authenticated session times out. At the end of the session, the user must log in again. This session timeout value applies to users of the profile and overrides the org-wide timeout value. Changes to the org-wide timeout value don’t apply to users of this profile.
  • Possible values:
    • 0 — 2 Hours
    • 15 — 15 Minutes
    • 30 — 30 Minutes
    • 60 — 1 Hour
    • 90 — 90 Minutes
    • 120 — 2 Hours
    • 240 — 4 Hours
    • 480 — 8 Hours
    • 720 — 12 Hours
    • 1440 — 24 Hours

sessionTimeoutWarning 

  • Type: boolean
  • Required: Yes

SessionSecurityLevel Type 

Session security levels control access to certain types of resources based on the type of authentication used for logging in to the current session. For example, username and password authentication requires the standard session security level. Multi-factor authentication (MFA) requires HIGH_ASSURANCE.

Declarative Metadata Sample Definition 

The following is an example of a ProfileSessionSetting component.

1<?xml version="1.0" encoding="UTF-8"?>
2<ProfileSessionSetting xmlns="http://soap.sforce.com/2006/04/metadata">
3    <profile>platformportal</profile>
4    <requiredSessionLevel>HIGH_ASSURANCE</requiredSessionLevel>
5    <sessionTimeout>1440</sessionTimeout>
6</ProfileSessionSetting>

Wildcard Support in the Manifest File 

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.