This article explains how a System Administrator can generate a temporary verification code in Agentforce Sales (formerly Sales Cloud) or Agentforce Service (formerly Service Cloud) to restore access for a user who cannot log in with Multi-Factor Authentication (MFA) due to a lost or malfunctioning device.
If a Salesforce user enabled for Multi-Factor Authentication (MFA) is unable to log in, a System Administrator should generate a temporary verification code as a temporary access key, rather than disabling MFA, to avoid security risks.
This code allows the user to log in and re-register a new authentication device.
From Setup, enter "Users" in the Quick Find box, then select Users.
Click on the name of the target user.
On the user's detail page, click Generate next to "Temporary Verification Code."
Set an expiration time for the code between 1 and 24 hours, then click Generate Code.
Copy the generated code and share it with the user through a secure method.
Log in with your username and password as usual.
When prompted for verification, enter the temporary verification code shared by the administrator.
After logging in, disconnect the old authentication method from your account and register a new authentication device.
Generate a Temporary Verification Code for MFA Logins to Salesforce Orgs
000395167

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.