Locked out of Salesforce: how an admin resets MFA and passwords
After too many wrong passwords, click Unlock on the user in Setup or reset their password. For a lost MFA method, issue a temporary verification code (1 to 24 hours), then disconnect the old method so they can register a new one. If the only admin is locked out, contact Salesforce Customer Support.
First, work out which lock it is
Everything here was checked against Salesforce Help on 23 November 2026. Since Salesforce enforced MFA for all internal users in summer 2026, there are two common ways to be locked out. A password lockout happens after too many wrong passwords. An MFA problem happens when the password is right but the person cannot complete the second step, usually because their phone is lost, new or at home. The fixes differ, so ask the user what the login page shows.
Common Salesforce lockouts and the admin’s fix
| What happened | What the admin does | Permission the admin needs |
|---|---|---|
| Too many wrong passwords | Click Unlock on the user’s record, or wait for the lockout period to end (15 minutes by default) | Reset User Passwords and Unlock Users |
| Forgot their password | Reset the password from Setup, or let them use the forgot password link on the login page | Reset User Passwords and Unlock Users |
| Phone or security key left at home | Generate a temporary verification code | Manage Multi-Factor Authentication in User Interface |
| Phone lost or stolen | End their sessions, disconnect the method, issue a temporary code and check for unusual activity | Manage Multi-Factor Authentication in User Interface |
| New phone, or their passkey or app stopped working | Issue a temporary code, disconnect the old method and ask them to register again | Manage Multi-Factor Authentication in User Interface |
| The only admin is locked out | Contact Salesforce Customer Support | Not applicable |
Unlocking a user after too many wrong passwords
In Setup, Password Policies holds two settings: Maximum invalid login attempts sets how many wrong attempts are allowed, and Lockout effective period sets how long the lockout lasts, 15 minutes by default. Salesforce Help lists other events that count towards the limit, such as a wrong security token when someone logs in through the API.
The user can wait for the period to end. To let them in sooner:
- From Setup, type Users in the Quick Find box and select Users.
- Select the user, then click Unlock. The button only appears while the user is locked out.
Resetting a locked-out user’s password unlocks them too. Someone who was already logged in when the lockout started stays logged in to that session. If your org uses SSO, your identity provider usually applies its own lockout rules to those users.
Resetting a password
- From Setup, type Users in the Quick Find box and select Users.
- Tick the box next to the user and click Reset Password. Salesforce emails them a link and instructions.
- They must change the password the first time they log in.
A reset also resets the user’s security token and emails them the new one, so anything that logs in with the old token will need the new one. API-only users are the exception: their token is not reset and no token email is sent. After a reset, users sometimes have to activate their device again before they can log in. You cannot reset passwords from the Salesforce mobile app, and only an admin can reset the password of a user who logs in with SSO.
Users can reset their own password with the forgot password link if they have set a security question and answer it correctly. They can request a reset up to 10 times an hour and complete one up to 5 times an hour. Admins have no limit.
Password Policies also lets you add a message and a help link to the email Salesforce sends when someone locks themselves out by trying to reset too many times. Our advice is to put your admin’s or help desk’s name there, so people know who to ask.
Lost or forgotten MFA method: the temporary verification code
A temporary verification code lets someone complete MFA without their usual method, and it is the quickest way to get them working again. To create one you need the Manage Multi-Factor Authentication in User Interface permission as well as your admin permissions.
- From Setup, type Users in the Quick Find box and select Users.
- Click the user’s name. Do not click Edit, because that view has no option to create a code.
- Find Temporary Verification Code and click Generate. If your own session is not high assurance, Salesforce asks you to verify your identity first.
- Set how long the code lasts, from 1 to 24 hours, and select Generate Code.
- Give the user the code. They log in with their username and password and enter the code when Salesforce asks for it.
- Select Done. After that, Salesforce does not show the code anywhere, so you cannot look it up again.
Temporary verification code rules
| Rule | Detail |
|---|---|
| How long it lasts | 1 to 24 hours, chosen by the admin. It can be expired early |
| How often it works | As many logins as needed until it expires |
| Codes per user | One at a time. Up to six can be generated per user per hour |
| Inactive users | You cannot generate a code for an inactive user |
| What it covers | MFA only. It does not work for device activation, when Salesforce asks someone to confirm a new browser or app |
Salesforce recommends expiring the code once the user no longer needs it, rather than leaving it to run out. To do that, open the user from Setup, Users in the same way, find Temporary Verification Code and select Expire Now. This also needs the Manage Multi-Factor Authentication in User Interface permission.
If the phone is lost, stolen or replaced
A user can connect only one Salesforce Authenticator app, one security key and one third-party authenticator app at a time. To use a new phone or key, the old one has to be disconnected first. A user can add more than one passkey, though, and Salesforce suggests doing so as a backup. To remove a lost passkey, open the user from Setup, Users, find the Built-in Authenticators section and click Del next to it. For a lost or stolen device, Salesforce recommends these steps:
- End the user’s current session and make them log in again.
- Disconnect the lost method from their account.
- Give them a temporary verification code so they can keep working.
- Check their account for unusual activity.
- Help them register a method on the new device when they have it.
- Expire the temporary code.
If a method simply stopped working, or someone has a new phone, the security checks are not needed: issue a code, disconnect the old method, help them register again and expire the code. Salesforce also recommends disconnecting all of a user’s methods when they leave the company.
When an admin is locked out
Admins and other privileged users must use a passkey or a security key, as our post on whether a passkey is now required to log in to Salesforce explains. If one of them is locked out, another admin follows the same steps: a temporary verification code, then disconnecting the old method and helping them register a new one. Salesforce puts admin-generated temporary codes in the same phishing-resistant tier as passkeys, so the code works for an admin too.
If you are the only admin, nobody in your org can do this for you. Salesforce’s instruction is to contact Salesforce Customer Support with your org ID and the username of your admin account. Support can disconnect your existing passkey so that you can add a new one. Salesforce does not say how long this takes.
Our advice, so it never comes to that:
- Have at least two people who can generate temporary codes. Salesforce itself warns that at least two admins should have the permission, and it lets you give the Manage Multi-Factor Authentication in User Interface permission to trusted users who are not admins, such as a help desk.
- Ask each admin to register a second method, such as a security key kept somewhere safe as well as the passkey on their laptop.
- Before you refresh a sandbox, make sure an admin can log in to it directly. MFA methods do not carry over after a refresh, and SSO stays switched off in the refreshed sandbox until you set it up again.
Checking what happened in Login History
Login History in Setup shows login attempts for the past six months, up to 20,000 rows on screen, and you can download the same period as a CSV or GZIP file. Each attempt has a status, so you can see a run of invalid passwords and then the password lockout. You need the Monitor Login History or Manage Users permission to see it.
For MFA problems, the Identity Verification History page and the Identity Verification Methods report show how users verified their identity over the past six months, and a user list view can show which methods each person has registered.
Getting help
Unlocking users and replacing lost MFA methods are quick jobs once you know where to look. If your team has no admin, or only one, our Salesforce admin cover starts at £950 a month, excluding VAT, with a first response within 4 hours on the smallest package. Our companion guide to Salesforce MFA requirements for a small team covers how to set MFA up so that lockouts are rarer.
Sources
- Salesforce Help, "Set Password Policies" (checked 23 November 2026)
- Salesforce Help, "Reset Passwords for Your Users" (checked 23 November 2026)
- Salesforce Help, "Resolve MFA Access Issues for Your Users (Salesforce Orgs)" (checked 23 November 2026)
- Salesforce Help, "Generate a Temporary Verification Code for MFA Logins to Salesforce Orgs" (checked 23 November 2026)
- Salesforce Help, "Expire an MFA Temporary Verification Code for Salesforce Orgs" (checked 23 November 2026)
- Salesforce Help, "Disconnect Identity Verification Methods that are Lost, Replaced, or Not Working (Salesforce Orgs)" (checked 23 November 2026)
- Salesforce Help, "Disconnect a Passkey from a User’s Account (Salesforce Orgs)" (checked 23 November 2026)
- Salesforce Help, "Access Your Account When You Can’t Use a Passkey" (checked 23 November 2026)
- Salesforce Help, "MFA for Direct Salesforce Logins" (checked 23 November 2026)
- Salesforce Help knowledge article 005321563, "Prepare for Phishing-Resistant MFA Enforcement for Privileged Users including Admins" (publish date 9 November 2026, latest change log entry 3 November 2026) (checked 23 November 2026)
- Salesforce Help knowledge article 005321561, "Prepare for MFA Enforcement for All Employee Users" (publish date 9 November 2026, latest change log entry 3 November 2026) (checked 23 November 2026)
- Salesforce Help, "Delegate MFA Management Tasks for Salesforce Orgs" (checked 23 November 2026)
- Salesforce Help, "Monitor Login History" (including "Login History Report Codes") (checked 23 November 2026)
- Salesforce Help, "Monitor MFA Usage in Your Salesforce Org" (checked 23 November 2026)
- Black Cloud, Salesforce admin cover: packages, prices and response times (checked 23 November 2026)