Newer Version Available
ProfileSessionSetting
File Suffix and Directory Location
ProfileSessionSetting components have the suffix .profileSessionSetting and are stored in the profileSessionSettings folder.
Version
ProfileSessionSetting components are available in API version 40.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| profile | string | Required. Name of the user profile. |
| requiredSessionLevel | SessionSecurityLevel | Session security level. |
| sessionPersistence | boolean | 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 | int | 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. Valid values:
|
SessionSecurityLevel
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.
| Field Name | Field Type | Description |
|---|---|---|
| SessionSecurityLevel | (enumeration of type string) | User’s security level for the current session.
|
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.