An Auth.SessionLevel enum value is used by the SessionManagement.setSessionLevel method.
Enum Values
| LOW |
The user’s security level for the
current session meets the lowest requirements. This
low level is not available, nor used, in the Salesforce UI. User sessions through the Salesforce UI are either standard or high assurance. You can set this
level using the API, but users assigned this level will
experience unpredictable and reduced functionality in their Salesforce organization.
|
| STANDARD |
The user’s security level for the
current session meets the Standard requirements set in the current organization Session
Security Levels. |
| HIGH_ASSURANCE |
The user’s security level for the current
session meets the High Assurance requirements set in the current organization Session
Security Levels. |
Usage
Session-level security controls user access to features that support it, such as connected apps and
reporting. For example, You can customize an organization’s Session Settings to
require users to log in with two-factor authentication to get a High Assurance
session. Then, you can restrict access to a specific connected app by requiring a
High Assurance session level in the settings for the connected app.