Starting in January 2027, Salesforce blocks direct login (username and password) for users who sign in with single sign-on (SSO) and have not registered a multi-factor authentication (MFA) method in Salesforce. This change affects Salesforce orgs that use SSO and direct login.
Users who already have a registered MFA method aren't affected. When a user is blocked during the direct login attempt, they can sign in with SSO, register an MFA method from their personal settings, and then use that MFA method for a direct login.
What's Changing
Salesforce blocks direct login for users who log in to Salesforce with single sign-on (SSO) and who have not registered a Salesforce multi-factor authentication (MFA) method.
After a successful SSO sign-in, Salesforce sets the user preference userHasLoggedInViaSso for that user. Users and admins can't update that setting. If that user later signs in with a username and password and Salesforce asks them to register MFA, the sign-in is blocked. The “Create a Passkey” MFA registration screen isn't shown.
These behaviors do not change:
Successful SSO sign-ins include SAML single sign-on, OpenID Connect single sign-on, and SSO that uses a SAML bearer or JWT bearer assertion.
This change is separate from "Security Change: New SSO-Required Permission and Automatic Legacy Configuration Migration, which introduces a user permission that requires users to log in only through single-sign-on and blocks all direct logins.
Why Salesforce Is Making This Change
This change protects orgs that use single sign-on by securing the direct login path. It prevents threat actors from using stolen or reused Salesforce password to register an MFA method on first-time direct login and take over the account.
We encourage you to test this change before enforcement. Here’s when you can test the change:
In sandboxes: starting December 1, 2026
In production: starting December 9, 2026
This change is enforced:
In sandboxes: January 7–18, 2027
In production: February 4–20, 2027
Who's Affected
This change applies to internal (employee) users whose userHasLoggedInViaSso preference is set and who later start a direct login that asks them to register Salesforce MFA. For those users, direct login is blocked. It doesn’t apply to external (Experience Cloud) users.
Affected users meet both of these conditions:
They log in to Salesforce with SSO
They also use a username and password for some access, such as a backup sign-in.
They don't have an MFA method registered in Salesforce.
Users with a registered Salesforce MFA method can still complete direct login with that method.
This change doesn't apply to Experience Cloud or other external users.
What to Expect
Before Enforcement: How to Prepare for the Block Direct Login for SSO Users
To make sure that your users can continue logging into Salesforce directly, provide instructions to the users affected by this change.
Identify users without a registered MFA method in Salesforce. Try creating a report, or use SOQL. Here’s an example query.
SELECT Id, Username, Name FROM User WHERE IsActive = true AND Id NOT IN ( SELECT UserId FROM TwoFactorMethodsInfo WHERE HasSalesforceAuthenticator = true OR HasTotp = true OR HasSecurityKey = true OR HasU2F = true OR HasBuiltInAuthenticator = true )
If at least one user is affected by this change, determine your preferred identity verification method. Salesforce recommends passkeys. Find instructions for registering each available method on Register an Identity Verification Method for Salesforce Orgs in Salesforce Help.
Instruct the affected users to register an MFA method before enforcement. Include links to the instructions in Salesforce Help for registering your recommended MFA methods.
Stay tuned for detailed instructions.
After Enforcement: How to Resolve a Blocked Direct Login When MFA Is Not Registered
If a user is blocked on direct login because they have not registered MFA, provide them with these instructions.
Sign in with SSO. Don't use the username-and-password login.
Register an MFA method from personal settings.
Log out of Salesforce.
Sign in again with the username and password, and complete MFA with the MFA method that you registered. Direct login should succeed.
Users who already had a method registered can keep using it. They aren’t blocked and don't need to register again.
If the user can't sign in with SSO, work with the identity provider administrator so that the user can complete SSO sign-in and then register an MFA method. After enforcement, existing SSO users can register a new MFA method only after they log in via SSO.
Common Questions
Is this the same change as Single Sign-On Required?
No. The SSO-required permission and the automatic migration of legacy SSO settings are a separate change. See Salesforce Help: Security Change: New SSO-Required Permission and Automatic Legacy Configuration Migration. This article only covers the block on direct login when an SSO user has not registered MFA.
Does this block every direct login for SSO users?
No. Direct login is blocked only when the user has userHasLoggedInViaSso set and they have not registered a Salesforce MFA method. For these users, the prompt for MFA registration isn’t shown to the user. Users with a registered Salesforce MFA method. Those users aren't affected by this change.
Are existing MFA methods disabled?
No. Previously registered MFA methods continue to work after this change is enforced.
How does a blocked user register MFA and sign in directly again?
Sign in with SSO, and then register an MFA method from personal settings. After the MFA method is registered successfully, direct login can succeed.
SSO sign-in itself doesn't change. Direct login is blocked when a user with userHasLoggedInViaSso set does not yet have a Salesforce MFA method. Register that method after an SSO sign-in if the user needs direct login.
A successful SSO sign-in sets it. That includes SAML, OpenID Connect, and SSO that uses a SAML bearer or JWT bearer assertion. After Salesforce sets the preference, a later direct login is blocked until the user has a Salesforce MFA method.
No. Salesforce sets the preference, and it isn't available for users or admins to edit. It remains set after the SSO sign-in that turned it on. Clearing it is not how you restore direct login. Register an MFA method instead.
Stay tuned for detailed instructions.
No. This change applies to internal users.
To access an org at any time–including during an emergency–users must have pre-registered their MFA or phishing-resistant Multi-Factor Authentication (MFA). If SSO login is temporarily unavailable, users can’t register their first MFA method until SSO is available again.
|
Date |
Change |
|
November 10, 2026 |
Initial publication |
005465526

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.