---
schema_version: "1"
id: 7fae4f0c87ea31452e2c954d51d716625ae0d0eddce2f020fb98b00338cef3f6
title: LightningLoginEligibility Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_Auth_LightningLoginEligibility.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Auth_LightningLoginEligibility.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 853a0da6241eb46d9cba00ccddefa6ad8ac77059995d5a739e12951bec19b0de
description: Contains a Lightning Login eligibility value used by the Auth.SessionManagement.getLightningLoginEligibility method.
---
# LightningLoginEligibility Enum

Contains a Lightning Login eligibility value used by the Auth.SessionManagement.getLightningLoginEligibility method.

## Usage

If you use the Discovery page type, users can verify themselves with Lightning Login. Lightning Login lets internal users log in with Salesforce Authenticator instead of a password. Certain conditions must be met for Lightning Login to succeed.

Call Auth.SessionManagement.getLightningLoginEligibility before or after a login attempt to get the eligibility status. You can call after a login attempt to determine why the login attempt failed.

## Enum Values

The following are the values of the Auth.LightningLoginEligibility enum.

| Value | Description |
| --- | --- |
| ELIGIBLE | All eligibility conditions are met. The admin has enabled Salesforce Authenticator and Lightning Login, assigned the user Lightning Login user permission, and selected **Allow only for users with the Lightning Login User permission** from the Session Settings Setup page. The user has set up Salesforce Authenticator and enrolled in Lightning Login. |
| ORG\_AUTHENTICATOR\_NOT\_ENABLED | The admin hasn’t enabled Salesforce Authenticator. |
| ORG\_PREF\_NOT\_ENABLED | The admin hasn’t enabled Lightning Login. The Admin must select **Allow Lightning Login** from the Session Settings Setup page. |
| USER\_AUTHENTICATOR\_NOT\_CONNECTED | The user hasn’t set up Salesforce Authenticator. |
| USER\_NOT\_ALLOWED | The admin hasn’t granted the user AllowLightningLogin user permission. Allowing Lightning Login to certain users requires the OnlyLLPermUserAllowed org preference. Admins must select **Allow only for users with the Lightning Login User permission** from the Session Settings Setup page. |
| USER\_NOT\_ENROLLED | The user hasn’t enrolled in Lightning Login. |
| USER\_PERM\_NOT\_ENABLED | The admin hasn’t granted the user the Lightning Login Eligible user permission. |