What Is My Domain?

My Domain lets you specify a customer-specific name to include in your Salesforce org URLs. That My Domain name is used as your org-specific subdomain, for example, https://yourcompanyname.my.salesforce.com. With a My Domain, you can customize your login page and better manage user login and authentication. Because orgs with a My Domain are more secure, many Salesforce features require one.
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 get an overview and learn about the benefits of My Domain, watch the Watch My Domain video Salesforce My Domain video.

When you enable My Domain, your org’s login URL uses a standard format, with your My Domain name as the subdomain. For example, the format for production org login URLs is https://MyDomainName.my.salesforce.com.

Production orgs created in Winter ’21 and later have a My Domain by default. If you don’t like your org’s My Domain name, you can change it. My Domain is also available for sandbox environments.

A My Domain uses Salesforce domain suffixes, like my.salesforce.com, for your org’s URLs. In orgs without enhanced domains, your My Domain doesn’t affect your org’s Salesforce Sites and Experience Cloud sites URLs. To use a custom domain, such as https://www.example.com, to serve your org’s Salesforce sites and Experience Cloud sites, see Manage Your Domains in Salesforce Help.

Note

With My Domain, you can:
  • Highlight your business identity with your unique domain URL.
  • Brand your login page, and customize content on the right side of the page.
  • Block or redirect page requests that don’t use the new domain name.
  • Work in multiple Salesforce orgs in the same browser at the same time.
  • Set custom login policy to determine how users are authenticated.
  • Let users log in using a social account like Google or Facebook from the login page.
  • Allow users to log in one time to access external services.
  • Preserve deep links such as https://MyDomainName.my.salesforce.com/001/o during future instance refreshes and org migrations.

When you create a subdomain with My Domain, Salesforce is enabled as the identity provider. After you deploy your My Domain, you can change identity providers. You can also increase security for your org by customizing your domain’s login policy.

My Domain is required to use many Salesforce features, including:

  • Single sign-on (SSO) with third-party identity providers
  • SSO with authentication providers such as Google and Facebook
  • Lightning components in Lightning component tabs, Lightning pages, the Lightning App Builder, or standalone apps