---
schema_version: "1"
id: db201629c1039e56c007c2738f56ceb5745073c9f5f5625faf2d421935c4a0ce
title: Configure Single Sign-On to Enable Merchant Agent Features
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_set_up_sso_for_merchant_agent.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_set_up_sso_for_merchant_agent.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 68e6785bc6dc423137e20f737ab0a1ffe9692796e82d0cf62571a178b10d45eb
description: For the Merchant Agent to work, the agent requires that you configure single sign-on (SSO) between B2C Commerce and Salesforce. Use Account Manager or Salesforce as the Identity Provider (IdP) to establish the trust relationship between the two applications.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Configure Single Sign-On to Enable Merchant Agent Features

For the Merchant Agent to work, the agent requires that you configure single sign-on (SSO) between B2C Commerce and Salesforce. Use Account Manager or Salesforce as the Identity Provider (IdP) to establish the trust relationship between the two applications.

Before you begin, make sure that you have:

- Admin access to Account Manager.
- Admin access to your Salesforce org (permission to manage Auth Providers).

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d130326e48">Identity provider</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d130326e51">Configuration Tasks</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Identity provider" class="slds-cell-wrap" style="vertical-align:top;" headers="d130326e48 ">Account Manager</td>

          <td data-label="Configuration Tasks" class="slds-cell-wrap" style="vertical-align:top;" headers="d130326e51 ">
            <ul>
              <li>Add an API Client in Account Manager.</li>

              <li>Add Account Manager as an Auth Provider in your Salesforce org.</li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Identity provider" class="slds-cell-wrap" style="vertical-align:top;" headers="d130326e48 ">Salesforce</td>

          <td data-label="Configuration Tasks" class="slds-cell-wrap" style="vertical-align:top;" headers="d130326e51 ">
            <p>If Salesforce is the IdP, the setup depends on whether the B2C Commerce instance
              connects to a Salesforce production org or to a sandbox org.</p>
            <ul>
              <li>If your connection is to a production org, configure a login flow at the primary
                Salesforce org. No Auth Provider is necessary.</li>

              <li>If your connection is to a sandbox org: <ul>
                  <li>Create an External Client App in the production org.</li>

                  <li>Configure the Auth Provider in the sandbox org.</li>

                </ul>
              </li>

            </ul>
          </td>

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

- **[Configure SSO Using Account Manager as the IdP](https://help.salesforce.com/s/articleView?id=cc.b2c_account_manager_idp.htm&release=264.0.0&type=5)**  
    If you’re using Account Manager as an IdP, complete these tasks for the B2C Commerce Merchant Agent to work.
- **[Configure SSO with Salesforce as the IdP](https://help.salesforce.com/s/articleView?id=cc.b2c_salesforce_org_idp.htm&release=264.0.0&type=5)**  
    If you’re using Salesforce as an IdP, configure SSO so a user can access B2C Commerce Merchant Agent capabilities.
- **[Configure the Salesforce Sign-On URL in Business Manager](https://help.salesforce.com/s/articleView?id=cc.b2c_configure_salesforce_sign_on_url.htm&release=264.0.0&type=5)**  
    After you create an Auth Provider, Salesforce generates a single sign-on URL. Add this URL to the identity synchronization setting in Business Manager. These instructions apply whether Account Manager or the Salesforce org is the IdP for B2C Commerce Merchant Agent access.