---
schema_version: "1"
id: 846087edd8dfcafb58a13f45ff0aae912a485029fafd83e5728e8b538bc35eed
title: Set the My Domain Login Policy
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/domain_name_setting_login_policy.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.domain_name_setting_login_policy.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3690342e06a5c2918310e47344ca0d203f5281cd4ae6c2ffd9299a7e19368afa
description: Manage how users and API calls access your Salesforce org. Specify whether logins to your org require your My Domain. And choose what users see when they access a bookmark or link that contains your instance-specific domain.
products:
  - Security
release: "264"
---
# Set the My Domain Login Policy

Manage how users and API calls access your Salesforce org. Specify whether logins to your org require your My Domain. And choose what users see when they access a bookmark or link that contains your instance-specific domain.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Group</strong>, <strong>Essentials</strong>, <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and<strong> Developer</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d44665e80">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d44665e80 ">To edit My Domain settings:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d44665e80 ">Customize Application</td>

          </tr>
        </tbody>
      </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-security-264-0-0-production-enus/8cecd769-ab2d-4e07-addf-c4f2927925e1/images/icon_note.png)

Note This setting applies to your org’s deployed and provisioned domains.

To learn how to handle requests to your instanced URL, such as https://eu55.salesforce.com, and requests to your previous My Domain URLs, see [Manage My Domain Redirections](https://help.salesforce.com/s/articleView?id=xcloud.domain_name_redirections_manage.htm&type=5&language=en_US).

1. From [Setup](https://help.salesforce.com/s/articleView?id=xcloud.basics_nav_setup.htm&type=5&language=en_US), use the Quick Find box to find and select **My Domain**.
2. In the Routing and Policies section, click **Edit**.
3. To require that users log in with your My Domain in production, select **Prevent login from https://login.salesforce.com and https://welcome.salesforce.com**. Or, in a sandbox, select **Prevent login from https://test.salesforce.com**.
    
    If you enable this setting, users also can’t use your instanced URL, such as https://usa77.salesforce.com, to log in. Also, if you enable **Prevent login from https://test.salesforce.com** in a sandbox, admins can’t log in to that sandbox via the **Log In** action on the Sandboxes Setup page.
4. To require that SOAP API logins use your My Domain login URL, in production, select **Prevent SOAP API login from https://login.salesforce.com**. Or, in a sandbox, select **Prevent login from https://test.salesforce.com**.
    
    If you enable this setting, SOAP API logins also can’t use your instanced URL, such as https://usa77.salesforce.com, to log in.
    
    API traffic that uses an incorrect instanced URL is blocked on a rolling basis shortly after your org gets the Summer ’26 release, regardless of this setting. See [Prepare for the End of Redirections for Non-Enhanced Domains](https://help.salesforce.com/s/articleView?id=xcloud.domain_name_redirections_non_enhanced.htm&type=5&language=en_US).
5. Save your changes.

#### See Also

- [My Domain](https://help.salesforce.com/s/articleView?id=xcloud.domain_name_overview.htm&type=5&language=en_US)