If a user is failing to log in to Salesforce and their login history shows the error 'Restricted Domain,' they are likely attempting to access Salesforce via a saved bookmark or are not logging in from the correct domain URL.
If you are an administrator, check your org's domain restriction settings by navigating to My Domain in Setup:
If "Prevent login from https://login.salesforce.com" is enabled, all users in the environment will need to use your Salesforce instance's unique MyDomain URL to log in.
Users logging in to a Sandbox directly through Production (via Setup | Sandboxes) can encounter this same issue if "Prevent login from https://test.salesforce.com" is enabled. Logging in from Production to a Sandbox will route the user to the respective Sandbox's default URL (https://<instance>.salesforce.com) instead of the Sandbox's domain.
This article explains why Salesforce users encounter a 'Restricted Domain' error in login history and how administrators can resolve it by directing users to the correct MyDomain URL.
This error usually occurs when both of the following conditions are true:
Have users log in using your Salesforce instance's unique MyDomain URL instead of the generic Salesforce login pages. Make sure to also update any user web browser bookmarks to reflect your instance's MyDomain URL.
For a full list of the URLs used to access Salesforce and their My Domain URL formats, see My Domain URL Formats in Salesforce Help.
000387792

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.