---
schema_version: "1"
id: daa49e230f12dc8b45700afa9f8e803222b7ad0d1b0f3cfa9211e6d2c1c900d0
title: Update Named Credentials After a My Domain Change
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/domain_name_auth_update_named_credentials.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.domain_name_auth_update_named_credentials.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ded1ed92f851d9d298af619f66129adf3019cc74f52766229fbab056a8614ddb
description: To simplify the setup of authenticated callouts, you can use a named credential as the callout endpoint. When your My Domain login URL or site login URL changes, named credentials that use that URL stop working. Because DevOps Center uses named credentials, you can’t access DevOps Center environments when the org’s My Domain login URL changes. To reestablish the impacted authentication callouts, update the URL field for the affected named credentials.
products:
  - Salesforce Platform
  - Cross Cloud
release: "264"
---
# Update Named Credentials After a My Domain Change

To simplify the setup of authenticated callouts, you can use a named credential as the callout endpoint. When your My Domain login URL or site login URL changes, named credentials that use that URL stop working. Because DevOps Center uses named credentials, you can’t access DevOps Center environments when the org’s My Domain login URL changes. To reestablish the impacted authentication callouts, update the URL field for the affected named credentials.

### 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="d113949e71">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d113949e71 ">To view named credentials:</td>
            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d113949e71 ">View Setup and Configuration</td>
          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d113949e71 ">To create, edit, or delete named credentials:</td>
            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d113949e71 ">Customize Applications</td>
          </tr>
        </tbody>
      </table>

1. From Setup, in the Quick Find box, enter Named Credentials in the Quick Find box, then select **Named Credentials**.
2. To modify an existing named credential, click **Edit**.
    
    To find the affected named credentials, look for your old My Domain login URL or site login URL in the URL field.
    
    To locate the named credential records that DevOps Center uses to access your org, look for the environment’s DevOps Center record ID in the Label field. DevOps Center uses this pattern: `environmentRecordID_projectName_environmentName_sequentialNumber`.
3. In the URL field, replace your old login URL with your new login URL.
    
    For example, if the named credential uses your My Domain login URL, replace `https://oldMyDomainName.my.salesforce.com` with `https://newMyDomainName.my.salesforce.com`.
    
    Or if the named credential uses your site URL, replace `https://oldMyDomainName.my.site.com/hr/jobpostings` with `https://newMyDomainName.my.site.com/hr/jobpostings`.
4. Deselect **Start Authentication Flow on Save** and save your changes.
5. Verify your changes.
    1. Trigger a callout that uses the updated named credential.
        
        For example, use aAnn external service that uses the named credential to access your org through Salesforce Connect. Or access DevOps Center and perform an operation against the environment that uses the named credential.
    2. When prompted, reauthenticate with your credentials for the affected org.
        
        If your authentication fails, double-check the URL and update the named credential record if needed.

The first time a user accesses functionality that uses the updated named credential, the user is prompted to reauthenticate. Include this detail in your communication plan for the My Domain change.

#### See Also

- [My Domain](https://help.salesforce.com/s/articleView?id=xcloud.domain_name_overview.htm&release=264.0.0&type=5 "Showcase your company’s brand with a customer-specific subdomain name in your Salesforce org URLs. With My Domain, you can include your company name in your URLs, for example, https://mycompany.my.salesforce.com. With these org-specific URLs, you can set up a custom login page, set a custom login policy, offer single sign-on, and allow users to log in with a social account. My Domain also allows you to work in multiple Salesforce orgs in the same browser at the same time.")
- [Configure My Domain Settings](https://help.salesforce.com/s/articleView?id=xcloud.domain_name_settings.htm&release=264.0.0&type=5 "Customize your login page with your brand and determine the user experience when they log into your Salesforce org via your My Domain.")