# Why is Two-Factor Authentication (2FA) mandated as a critical security control for Salesforce administration?

**Topic:** Admin · **Difficulty:** Medium · **Tags:** Admin, Two-Factor Authentication, Account Security

Read it on the site: https://www.forcechallenges.com/interview-questions/why-is-two-factor-authentication-2fa-mandated-as-a-critical-security-control-for-salesforce-administration

## Answer

**Basics:** Passwords get phished, reused and leaked. MFA adds a second proof, something you have (an authenticator app, security key or built-in biometric) so attackers with the password still cannot sign in. Admin accounts hold powerful permissions (Modify All Data, Manage Users, API access), making them the highest-value targets.

**How it works:**
1. Setup > Identity Verification: enable "Require multi-factor authentication (MFA) for all direct UI logins to your Salesforce org".
2. Alternatively grant the "Multi-Factor Authentication for User Interface Logins" user permission via profile or permission set.
3. Users register a verification method: Salesforce Authenticator, a third-party TOTP app, a security key (WebAuthn/U2F), or built-in authenticators (Touch ID, Windows Hello).
4. At login, after the password, the user approves or enters the code.
5. For SSO users, the identity provider performs MFA.
6. API integrations are handled separately (OAuth, JWT, IP controls); a separate permission exists for API logins with verification codes.

**Advanced / deep dive:** Salesforce has required MFA for access to its products since February 1, 2022 (SSO with IdP MFA satisfies the requirement). Email and SMS codes are not considered strong factors and are not accepted to meet the requirement. Use High Assurance session levels to demand stronger authentication for sensitive actions (for example, session security level on profiles/permission sets or Apex `Auth.SessionManagement`). Combine with login IP ranges, login hours, connected-app policies and Transaction Security. Provide break-glass procedures and recovery for lost devices; waiving MFA for exempt integration users is done with a specific permission and should be tightly limited and documented. Device activation (email code on new IP) is a different control from MFA.

**Code / config example:**
```text
Org-wide:   Setup > Identity Verification > Require MFA for all direct UI logins
Per user:   Permission Set "MFA_Required" > System Permissions > Multi-Factor Authentication for User Interface Logins
Exempt:     Permission "Waive Multi-Factor Authentication for Exempt Users" (integration/test users only, document why)
```

**Hidden gotchas & must-remember points:**
- MFA is a Salesforce contractual requirement for direct UI logins, not optional.
- SSO logins rely on the IdP's MFA.
- SMS and email are not acceptable factors for the requirement.
- Device activation emails are not MFA.
- Lost authenticator recovery needs an admin process; plan it.
- "Two-factor" is the legacy name; docs now say multi-factor authentication.

**Best practice:** Enforce MFA org-wide with phishing-resistant factors for admins and minimize any exemptions.

---
Source: ForceChallenges · last updated 2026-11-02
