Concept 7 of 8Foundations

MFA and session security

Multi-factor authentication requirements, verification methods, session settings, login IP ranges and hours, high-assurance sessions, login flows and monitoring.

Your confidence:Not rated

Simple explanation

MFA is required for logins to the Salesforce UI. Users verify with a second factor such as the Salesforce Authenticator app, a TOTP authenticator app, a security key (WebAuthn/FIDO2) or built-in authenticators (Touch ID, Windows Hello). With SSO, enforce MFA at the identity provider.

Session and login controls

  • Session timeout and force logout on timeout; lock sessions to the IP they started from (where networks allow).
  • Login IP ranges (on profiles) restrict where users can log in from; trusted IP ranges (network access) skip identity verification challenges from known networks.
  • Login hours per profile.
  • Session security levels: high assurance sessions (for example after MFA) can be required for sensitive actions, reports or connected apps.
  • Login flows: a Flow that runs at login (extra checks, terms acceptance, step-up verification).
  • Device activation / identity verification for new browsers and locations.

Monitoring: login history, identity verification history, Event Monitoring (login events, API events) and Transaction Security policies that block or challenge risky actions (Shield) βš‘ verify packaging.

Real-world analogy

MFA is the second lock on the front door: a stolen key (password) isn't enough. Session settings are the house rules: lights off and doors locked after 30 minutes of nobody moving, and the safe (high-assurance actions) needs the second key again even if you're already inside.

Worked example

A financial services org:

  • SSO with the corporate IdP, which enforces phishing-resistant MFA (security keys) for privileged users.
  • Salesforce sessions time out after 30 minutes; reports export and the Setup area require a high-assurance session.
  • Admin profiles restricted to the corporate network with login IP ranges; a login flow requires step-up verification for admins outside office hours.
  • Transaction Security policy blocks report exports above 10,000 rows for non-approved users; login and API events stream to the SIEM.

Diagram

Rendering diagram…

Key points

  • MFA required for UI logins; with SSO, enforce it at the IdP.
  • Strong factors: authenticator apps, security keys, built-in authenticators.
  • Session timeout, IP locking, login IP ranges, login hours.
  • High-assurance sessions for sensitive actions; login flows for custom checks.
  • Event Monitoring and Transaction Security for detection and response.
  • Treat admins and integration users as privileged, with stricter controls.

Limits and gotchas

  • Login IP ranges on profiles block logins from outside the ranges entirely; trusted IP ranges only skip verification challenges. Don't confuse them.
  • Locking sessions to IP breaks users on networks where IPs change (mobile, some VPNs).
  • MFA requirements apply to direct logins; API-only integration users authenticate with OAuth flows instead.
  • High-assurance requirements on connected or external client apps need a login path that produces high-assurance sessions.

🎀 How to say this in an interview

Security-minded interviewers ask how you'd protect admins and sensitive data. Combine MFA at the IdP, network restrictions, high-assurance step-up for sensitive actions, and monitoring with automated response.

Common follow-ups

Login IP ranges vs trusted IP ranges?

Login IP ranges (on profiles) deny logins from anywhere else. Trusted IP ranges (network access) only avoid identity verification challenges for logins from those networks.

How do you protect report exports of sensitive data?

Permissions (who can export), high-assurance session requirements, Transaction Security policies that block or require MFA for large exports, and Event Monitoring to audit them.