Manage your user logins by customizing the login policy for your Salesforce org’s My
Domain. By default, users log in from a generic Salesforce login page, bypassing the login page
specific to your My Domain subdomain. To disable authentication for users who don’t use your My
Domain login page, set a login policy. If you don’t set a login policy, users can make page
requests without your My Domain URLs, such as when using old bookmarks.
| Available in: both Salesforce Classic (not available in all
orgs) and Lightning Experience |
| Available in: Group, Essentials, Professional, Enterprise,
Performance, Unlimited, and Developer Editions |
| To set the login policy for a domain: |
Customize Application |
My Domain settings show up only after you deploy My Domain. These settings apply to all
of your org’s deployed and provisioned domains.
-
From Setup, in the Quick Find box, enter My Domain, and then
select My Domain.
-
Under My Domain Settings, click Edit.
-
Choose a redirect policy.
-
To allow users to continue using URLs that don’t include your My Domain name,
select Redirect to the same page within the domain.
Bookmarks don’t work when
Redirect to the same page within the domain is selected
for partner portals. Manually change the existing bookmarks to point to the new My
Domain URL by replacing the Salesforce instance name with your My Domain subdomain
name. For example, replace https://InstanceName.salesforce.com/ with https://MyDomainName.my.salesforce.com/ in the
bookmark’s URL. See My Domain URL Formats for
more information.
-
To remind users to use your My Domain URLs, select Redirected with a
warning to the same page within the domain. Users briefly see a warning
message, then are redirected to the page. You can’t customize the warning
message.
Select this option for a few days or weeks to help users transition to your new My
Domain. The warning gives users a chance to change their bookmarks and get used to
using the new URLs.
-
To require users to use your My Domain URLs when viewing your pages, select
Not redirected.
-
Save your changes.