Newer Version Available

This content describes an older version of this product. View Latest

Generate a Temporary Identity Verification Code

Generate a temporary verification code for users who can’t access the identity verification method that they usually use for multi-factor authentication (MFA). Set the code's expiration for from 1 to 24 hours after you generate it. The code can be used multiple times until it expires.
Available in: Both Salesforce Classic and Lightning Experience
Available in: Essentials, Contact Manager, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions

User Permissions Needed
To generate a temporary verification code: Manage Multi-Factor Authentication in User Interface

Temporary verification codes are valid for multi-factor authentication only. They aren’t valid for device activation. That is, when users log in from an unrecognized browser or app and we require identity verification, they can’t use a temporary code.

  1. From Setup, enter Users in the Quick Find box, then select Users.
  2. Click the name of the user who needs a temporary verification code.
    You can’t generate a code for an inactive user.
  3. Find Temporary Verification Code, then click Generate.
    If you don’t already have a session with a high-assurance security level, Salesforce prompts you to verify your identity.
  4. Set an expiration time for the code, and click Generate Code.
  5. Give the code to your user, then click Done.
    After you click Done, you can’t return to view the code again, and the code isn’t displayed anywhere in the user interface.
Your user can use the temporary verification code multiple times until it expires. Each user can have only one temporary verification code at a time. If a user forgets or loses the code before it expires, you can manually expire the old code and generate a new one. You can generate up to six codes per hour for each user.

When you add an identity verification method to a user’s account, the user gets an email. To stop sending emails to users when new identity verification methods are added to their accounts, contact Salesforce.

Note