Sub topic 3
Choosing verification methods
This chapter assumes you can navigate Setup, manage users and permission sets, and know what MFA is from the previous chapter. It covers the verification methods Salesforce supports and how to pick among them.
What a verification method does
When MFA is on, a user signs in with a username and password, then proves a second factor. A verification method is the thing that provides that second factor. Salesforce accepts four kinds:
- Salesforce Authenticator (a mobile app)
- Third-party TOTP authenticator apps
- Security keys (U2F or WebAuthn)
- Built-in authenticators (Touch ID, Face ID, Windows Hello)
TOTP stands for time-based one-time password. The app and Salesforce share a secret. Each side computes a short code from that secret and the current time. The code changes about every 30 seconds.
The methods compared
| Method | How the user proves identity | Strengths | Limits |
|---|---|---|---|
| Salesforce Authenticator | Approves a push notification on the phone | Fast, shows the location and action being approved, supports automated approval from trusted locations | Needs a smartphone and the app |
| TOTP app (Google Authenticator, Microsoft Authenticator, Authy) | Types a six-digit code | Works offline, many users already have one | Codes can be phished by a fake login page |
| Security key (YubiKey, Google Titan) | Taps or inserts a hardware key | Strongest phishing resistance, no battery or signal | Costs money, can be lost, needs a supported browser or port |
| Built-in authenticator | Fingerprint, face, or PIN on the device | No extra app or hardware, quick | Tied to one device, so a second method is needed as a backup |
Salesforce also sends codes by email or text message for some flows, such as identity verification. These are not accepted as an MFA method that satisfies the MFA requirement. Treat them as weaker options.
How methods differ in security
Methods fall into two groups. Code-entry methods (TOTP) require the user to type a value. A convincing fake login page can collect that value and replay it. Approval and cryptographic methods (Salesforce Authenticator, security keys, built-in authenticators) are harder to phish. Security keys and built-in authenticators bind the proof to the real Salesforce domain, so a look-alike site cannot reuse it.
Decision criteria
Pick by weighing these factors:
- Risk of the account. Administrators and users who can export data justify security keys.
- Device access. Some workplaces ban personal phones. Use security keys or built-in authenticators there.
- Support cost. Fewer methods mean fewer help desk scripts. Supporting two or three is a common balance.
- Recovery. Every user should be able to register at least two methods, so a lost phone does not lock them out. Recovery is covered in a later chapter.
Checking what users have registered
Salesforce records registered methods in the TwoFactorInfo object. This query lists active users with no registered method, so you can see who still needs to act:
SELECT Id, Name, Username
FROM User
WHERE IsActive = true
AND Id NOT IN (SELECT UserId FROM TwoFactorInfo)Run it in Developer Console or Workbench. Users in the results either have not registered yet or cannot sign in with MFA.
Common mistakes
- Offering only one method, which leaves users stranded when a phone is lost.
- Assuming email or text codes satisfy the MFA requirement.
- Giving security keys to everyone without a replacement process.
- Skipping a phishing-resistant method for administrators.
Exercise
A contractor uses a shared kiosk computer, is not allowed a personal phone, and has admin access to your org. Which method fits best, and what should you add?
Show answer
A security key fits best. It needs no phone, and it resists phishing, which matters for admin access. Add a second registered method, such as another security key, so losing one key does not lock the contractor out.
Exercise
Why is a TOTP app considered less phishing-resistant than a security key?
Show answer
The user types a TOTP code, so a fake login page can capture and replay it. A security key ties its response to the real Salesforce domain, so a look-alike site cannot use it.