---
schema_version: "1"
id: a7d3fa0879ba13cd843fc3a2a8eccaff1ddebbeb6b013c9e68076139d0900b1a
title: SessionLevel Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_Auth_SessionLevel.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Auth_SessionLevel.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: da7647d2a1ec71a05fcf3d99da19829074238eba21378f5dea1062b4a2696773
description: An Auth.SessionLevel enum value is used by the SessionManagement.setSessionLevel method.
---
# SessionLevel Enum

An Auth.SessionLevel enum value is used by the SessionManagement.setSessionLevel method.

## Namespace

[Auth](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Auth.htm "The Auth namespace provides an interface and classes for single sign-on into Salesforce and session security management.")

## Enum Values

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d55060e63">Value</th>

              <th class="featureTableHeader  " id="d55060e66">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d55060e63" data-title="Value"><samp class="codeph apex_code">LOW</samp></td>

              <td class="entry" headers="d55060e66" data-title="Description">
                <span class="ph" id="contexttypeenum_organization_description"><a name="contexttypeenum_organization_description"><!-- --></a>The user’s security level for the
                  current session meets the lowest requirements.</span>
                <p class="p">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.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d55060e63" data-title="Value"><samp class="codeph apex_code">STANDARD</samp></td>

              <td class="entry" headers="d55060e66" data-title="Description"><span class="ph" id="contexttypeenum_recorddetail_description"><a name="contexttypeenum_recorddetail_description"><!-- --></a>The user’s security level for the
                  current session meets the Standard requirements set in the current organization Session
                  Security Levels.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d55060e63" data-title="Value"><samp class="codeph apex_code">HIGH_ASSURANCE</samp></td>

              <td class="entry" headers="d55060e66" data-title="Description"><span class="ph" id="contexttypeenum_user_description"><a name="contexttypeenum_user_description"><!-- --></a>The user’s security level for the current
                  session meets the High Assurance requirements set in the current organization Session
                  Security Levels.</span></td>

            </tr>

          </tbody>

        </table>

## Usage

With session-level security, you control 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 multi-factor authentication (MFA) 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.