Loading

Security Change: Direct Login Blocked for SSO Users Who Haven't Registered MFA

Udgivelsesdato: Nov 10, 2026
Beskrivelse

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.

Løsning

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:

  • Users who previously registered an MFA method in Salesforce are unaffected. Those users can still complete a direct login.
  • After a user logs in to Salesforce with SSO, they can register or manage MFA from personal settings. That registration is what allows a later direct login.

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.

 

When the Change Takes Effect

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.

 

Who’s not affected

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

  • Direct login is blocked for a user with userHasLoggedInViaSso set when Salesforce would have asked them to register a new MFA method. The “Create a Passkey” MFA registration screen is not shown, and the sign-in does not complete.
  • Direct login still succeeds for a user with userHasLoggedInViaSso set who already has a Salesforce MFA method and completes verification with that method.
  • Sign-in with SSO is unchanged. From that session, MFA registration in personal settings still works. After the user registers a method there, direct login can succeed.
  • While the Release Update Test Run is on, only your org sees this block, and only for users with userHasLoggedInViaSso set.
  • After enforcement, this change can't be disabled.

Before Enforcement: How to Prepare for the Block Direct Login for SSO Users

Identify and Notify Impacted Users

To make sure that your users can continue logging into Salesforce directly, provide instructions to the users affected by this change.

  1. 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

 

  1. 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. 

  2. 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.

Apply This Change Before Enforcement

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.

  1. Sign in with SSO. Don't use the username-and-password login.

  2. Register an MFA method from personal settings.

  3. Log out of Salesforce.

  4. 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.

Does anything change if our identity provider already requires MFA?

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.

Which sign-ins set userHasLoggedInViaSso?

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.

Can an admin clear userHasLoggedInViaSso?

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.

Can we try the SSO direct login block in one org before the enforcement rollout?

Stay tuned for detailed instructions. 

 

Does the SSO direct login block affect Experience Cloud users?

No. This change applies to internal users.

How do I access my org in an emergency scenario like my SSO identity provider is unavailable?

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. 

 

 

Change Log

Date

Change

November 10, 2026 

Initial publication

 

Vidensartikelnummer

005465526

 
Indlæser
Salesforce Help | Article