---
schema_version: "1"
id: c3cba8afc0c462a75306e7e1ec9668bcd5633aa46c481f3d18a5ba5504936809
title: Configure SAML SSO Between Salesforce Orgs or Experience Cloud Sites
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/sso_between_multiple_orgs.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.sso_between_multiple_orgs.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d2f2b85494869b6b228580507ea7212f183858ef0cee972a6e38a2d2cdd4ec35
description: If your company deploys more than one Salesforce org or Experience Cloud site, set up SAML single sign-on (SSO) so users can easily move between them. In this SSO configuration, a single org or site acting as the identity provider authenticates users for one or more orgs or sites in the service provider role. Users can log in to all orgs or sites with a single set of credentials.
products:
  - Experiences
release: "264"
---
# Configure SAML SSO Between Salesforce Orgs or Experience Cloud Sites

If your company deploys more than one Salesforce org or Experience Cloud site, set up SAML single sign-on (SSO) so users can easily move between them. In this SSO configuration, a single org or site acting as the identity provider authenticates users for one or more orgs or sites in the service provider role. Users can log in to all orgs or sites with a single set of 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;">
              <p>Federated Authentication is available in: <strong>All</strong> Editions</p>
              <p>Delegated
                Authentication is available in: <strong>Professional</strong>, <strong>Enterprise</strong>,
                <strong>Performance</strong>, <strong>Unlimited</strong>, <strong>Developer</strong>, and <strong>Database.com</strong>
                Editions
              </p>
              <p style="margin-bottom:0;">Authentication Providers are available in: <strong>Professional</strong>,
                <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong>
                Editions
              </p>
            </td>

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

Configuring SSO between an org and a site is largely the same as configuring SSO across orgs, with a few small differences in endpoint URLs that point to sites.

SSO across multiple service providers uses hub-and-spoke architecture. The identity provider is the authentication hub at the center. The identity provider validates credentials and asserts the user’s identity to the spokes—the orgs or sites that are the service providers.

![Hub-and-spoke architecture for SSO between multiple orgs](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/communities/images/sso_multi_org_architecture.png)

Salesforce supports identity provider-initiated and service provider-initiated logins. For more information, see [SAML Login Flows](https://help.salesforce.com/articleView?id=xcloud.identity_provider_about.htm&type=5&language=en_US).

To configure SSO between multiple Salesforce service providers:

- Set up a Salesforce identity provider.
- Set up one or more Salesforce service providers.
- In the identity provider, integrate your service providers as connected apps.
- Test the SSO connection.

## Set Up Your Salesforce Identity Provider

Configure an org or site as an identity provider to act as your authentication hub. To enable a site as an identity provider, complete these steps in the org where the site is set up.

1. From Setup, in the Quick Find box, enter Identity Provider, and select **Identity Provider**. Click **Enable Identity Provider**.
2. Select a certificate that the identity provider and service provider can use to trust each other. Salesforce automatically creates a self-signed certificate when you enable your org as an identity provider. To create your own certificate, select **Create a new certificate**.
3. Save your certificate. If you changed your certificate, click **OK** to accept the warning message.
4. On the Identity Provider page, click **Download Certificate**. Use it when you set up your service provider.
5. Get SAML metadata to share with the service provider. Use this metadata when you configure SAML settings in the service provider. This step is different for orgs and sites.
    - If your identity provider is an org, click **Download Metadata** to get the metadata in an XML file. To get a URL that references an XML metadata file, copy the Salesforce Identity URL listed under SAML Metadata Discovery Endpoints.
    - If your identity provider is a site, copy the Experience Cloud Site Identity URL under SAML Metadata Discovery Endpoints.

## Set Up Your Salesforce Service Providers

Configure your service provider orgs or sites—the spokes that rely on your authentication hub. Complete these steps in the service provider org or the org where your service provider site is enabled.

1. From Setup, in the Quick Find box, enter Single Sign-On Settings, then select **Single Sign-On Settings**.
2. Click **Edit**. To see SAML SSO settings, select **SAML Enabled**. Save the change.
3. Under SAML Single Sign-On Settings, click the appropriate button to create a configuration.
    
    1. If you downloaded an XML metadata file from the identity provider, click **New from Metadata File**. Upload the metadata file that you saved and click **Create**. This option uses the metadata from the XML file to complete SSO settings.
    2. If you copied the Salesforce Identity URL or the Experience Cloud Site Identity URL from the identity provider, click **New from Metadata URL**. Paste the URL and click **Create**. This option reads the XML file at the Salesforce Identity URL and uses it to complete SSO settings.
    
    The metadata options fill in the required SAML settings, including the Issuer, Entity ID, and Identity Provider Login URL fields.
4. For Identity Provider Certificate, upload the certificate you downloaded earlier from the identity provider.
5. For SAML Identity Type, select **Assertion contains the Federation ID from the User object**.
6. Save your settings. Then, from the Single Sign-On Settings pages, copy and save the Entity ID. You share this value with the identity provider when you create a connected app.
7. From the same page, get the SAML login endpoint to share with the identity provider. This step is different for orgs and sites.
    1. To configure your org as a service provider, copy the Login URL under Your Organization.
    2. To configure your site as a service provider, click the dropdown arrow next to For Communities. Your site's SAML endpoints appear. Copy the Login URL for your site.
8. In the service provider, add the identity provider as an authentication service.
    1. From Setup, in the Quick Find box, enter My Domain, then select **My Domain**.
    2. Under Authentication Configuration, click **Edit**.
    3. Select the authentication service for your identity provider.
        
        ![The Authentication Configuration page displays available authentication services](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/communities/images/sso_authentication_configuration.png)
        
        To prevent users from logging in directly to the service provider, deselect **Login Form**. When users go to the service provider Login URL, they're redirected to the identity provider to log in.
        
        To give users the option to log in directly to the service provider, select **Login Form** and your identity provider. With both of these options selected, your identity provider appears as a login option on the service provider's login page. Users can decide whether to log in to the service provider directly or log in with SSO.
        
        ![When you select both Login Form and the identity provider as authentication services, users have the option to log in to the service provider directly](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/communities/images/sso_login_form.png)
9. To define your other orgs as service providers, repeat these steps. Use the SAML metadata from your identity provider to complete SSO settings for your service providers.

## Integrate Service Providers as Connected Apps

To define the service provider to the identity provider, create a connected app in the identity provider.

1. In the identity provider, from Setup, in the Quick Find box, enter App, then select **App Manager**. Click **New Connected App**.
2. Complete the connected app's [basic information](https://help.salesforce.com/articleView?id=xcloud.connected_app_create_basics.htm&type=5&language=en_US).
3. Under Web App settings, select **Enable SAML**. Remember the Entity ID and Login URL values that you saved when you configured your service provider? You need them now to complete the connected app settings.
    1. For **Entity ID**, paste the Entity ID from the service provider.
    2. For the **ACS URL**, paste the Login URL for the org or site.
    3. For **Subject Type**, select Federation ID.
4. Save the settings.
5. To give your users access to this service provider, click **Manage** on the connected apps page. Select **Manage Profiles** or **Manage Permission Sets** and add the profiles or permission sets you want to access the service provider. For more information on profiles and permission sets, see [Manage Data Access](https://help.salesforce.com/articleView?id=security_data_access_mgmt.htm&language=en_US) and [Manage Other Access Settings for a Connected App](https://help.salesforce.com/articleView?id=xcloud.connected_app_manage_additional_settings.htm&type=5&language=en_US).
6. Each service provider needs its own connected app in the identity provider. To define your other service providers, repeat these steps.

## Test the SSO Connection

Map a test user from the identity provider to the service provider and confirm that the test user can log in with SSO.

1. In the identity provider, create a test user.
    1. From Setup, in the Quick Find box, enter Users, then select **Users**.
    2. Click **New User**.
    3. Complete the test user's basic information and assign the user a profile that can access the service provider.
    4. Under Single Sign On Information, enter a unique Federation ID. The Federation ID can be any value. For more information on identifying and mapping users, see [Map Salesforce Users to the SAML Service Provider](https://help.salesforce.com/articleView?id=xcloud.service_provider_map_users.htm&type=5&language=en_US).
    5. Save the settings.
2. In the service provider, create the same test user. To bind the users together, use the same Federation ID that you entered for the test user in the identity provider.
3. In an incognito browser, enter the My Domain URL for the identity provider.
4. Log in to the identity provider as the test user.
5. In a new incognito browser tab, enter the My Domain URL for the service provider.

If SSO is successful, you're redirected to the identity provider. Because you're already authenticated, you're then redirected back to the service provider and logged in.