Loading

Error 'Restricted Domain' in login history

Udgivelsesdato: Jan 30, 2026
Beskrivelse


If your user is failing to log in to Salesforce, and their login history is showing the error 'Restricted Domain,' it is probably because they are attempting to access Salesforce via a saved bookmark link, or they are not logging in from the correct domain URL. 

If you are an administrator, check your org's domain restriction settings by navigating to: 


Salesforce Classic: Setup | Domain Management | My Domain
Lightning Experience: Click the gear icon | Setup | Company Settings | My Domain 


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

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

Løsning

This usually occurs when:
  • The Organization Administrator has enabled My Domain with the following configurations:
    •  "Prevent login from https://login.salesforce.com" or "Prevent login from https://test.salesforce.com" is ON
    • The Redirect Policy  is set to "Not redirected (Recommended)"
  • Users are trying to log in from one of the following URLs:
    • A generic Salesforce login page, such as https://login.salesforce.com or https://test.salesforce.com
    • An incorrect MyDomain URL (can be an old MyDomain, misspelled link, etc.)

To resolve the issue, please 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 .

See Also: 
Set Domain Login Policy
 
Vidensartikelnummer

000387792

 
Indlæser
Salesforce Help | Article