By default, when you set up single sign-on, users can log in from the SSO provider or
from Salesforce. To ensure that users can’t bypass your SSO system, disable their ability to
log in with their Salesforce username and password so that they’re required to log in with
SSO. We recommend that you don’t require SSO for Salesforce admins so that they can still
access Salesforce to respond to SSO outages or other issues.
Required Editions
Available in: both Salesforce Classic and Lightning Experience
Available in: all editions
User Permissions
Needed
To view the settings:
View Setup and Configuration
To edit the settings:
Customize Application
AND
Modify All Data
Disable direct logins through login.salesforce.com.
From Setup, in the Quick Find box, enter My
Domain, then select My
Domain.
In the Routing and Policies section, click
Edit.
In production, select Prevent login from
https://login.salesforce.com. In a sandbox, select
Prevent login from
https://test.salesforce.com.
Save your changes.
For users who have the Is Single Sign-On Enabled user permission, disable their
ability to log in with Salesforce credentials.
From Setup, in the Quick Find box, enter Single
Sign-On, then select Single Sign-On
Settings.
Click Edit.
In Delegated Authentication, select Disable login with
Salesforce credentials, then save your changes.
This setting doesn’t directly disable username-password logins
for all users. It applies only to users who have the Is Single Sign-On
Enabled user permission. As long as you don’t assign this permission to
users—such as admin users who must be able to log in if SSO is down—
they can still log in with their Salesforce credentials when this
setting is turned on.
To require SSO of certain users, assign them the Is Single Sign-On Enabled user
permission. To use permission sets, complete these steps.
Note You can use profiles instead of permission
sets, but it isn’t recommended.
Important As recommended, to exempt admins from the SSO
requirement, don’t assign the Is Single Sign-On Enabled user
permission.
If you change an SSO implementation that users are currently using,
ensure that users know the new URL where they can access your SSO login
page.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
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
Always Active
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
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
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.