Sub topic 10
Helping users who lose a verification method
This chapter assumes you can manage users and permission sets in Setup and that you know which verification methods your org accepts. It covers what to do when a user can't complete MFA because a phone is lost, replaced, or reset.
Why recovery needs a plan
MFA only helps if a real user can still get in. A lost phone with Salesforce Authenticator, or a missing security key, locks the user out. Without a plan, people ask for risky shortcuts, such as turning MFA off. A good recovery process restores access quickly and checks that the person asking is the account owner.
Recovery options at a glance
| Option | Who acts | When to use it |
|---|---|---|
| Another registered method | User | The user has a second method, such as a security key or built-in authenticator |
| Temporary verification code | Admin | The user has no working method and needs short-term access |
| Disconnect the method | Admin | The device is lost or replaced and the old registration must be removed |
| Re-register | User | The user has regained access and needs a new method |
Step 1: Verify the person
Before changing anything, confirm the requester is the account owner. Use a channel you trust, such as a call to a known number or approval from the user's manager. Do not rely on an email that claims to come from the user, because an attacker who has the password may also control that message.
Step 2: Remove the lost method
In Setup, open the user's record and find the section that lists the registered verification methods. Disconnect the lost one. If the device was stolen, also reset the user's password and end their active sessions. This stops anyone holding the device from using it.
Step 3: Give temporary access
A temporary verification code lets the user pass MFA without a registered method. Generate the code from the user's record and set an expiration. Keep the lifetime short, such as a few hours. Give the code through your trusted channel, and don't post it in chat or email it.
Your admins need the right permission to do this. Grant it through a permission set to a small support group rather than to every administrator.
Step 4: Have the user re-register
When the user signs in with the code, Salesforce prompts them to connect a new method. They should register at least two, for example an authenticator app and a security key. A second method means one lost device doesn't lock them out again.
Check who has no method
Use this query to find active users with no registered verification method. It helps you spot people who are one lost device away from a lockout.
SELECT Id, Name, Username
FROM User
WHERE IsActive = true
AND Id NOT IN (SELECT UserId FROM TwoFactorInfo)Common errors
- Code expires before use. The user waited too long. Issue a new one.
- Old method still listed. The user keeps getting prompts on a lost device. Disconnect it.
- Lost device is not secured. Resetting MFA alone leaves the old password and sessions valid. Reset the password and end sessions too.
- Only one method registered. The same problem recurs. Require a backup method during registration.
Exercise
A user reports a stolen phone that held their only authenticator. List the steps you take, in order.
Show answer
First confirm their identity through a trusted channel. Then disconnect the lost method on the user record, reset their password, and end their active sessions. Next, issue a temporary verification code with a short expiry and deliver it securely. Finally, have the user sign in and register at least two new methods.
Exercise
Why is a temporary code a security risk, and how do you limit it?
Show answer
It lets someone pass MFA without a registered method, so anyone who obtains it and the password can sign in. Limit it with a short expiry, delivery through a trusted channel, one code per user, and a permission set that only a small support group holds.