Loading
The online Trailblazer Community becomes read-only Oct 30, 2026Read More
Configure an Auth Provider for Salesforce Contracts Using Guided Setup

Configure an Auth Provider for Salesforce Contracts Using Guided Setup

Set up an Auth Provider in Salesforce to establish a secure connection with Microsoft 365 and Azure. This process includes creating or selecting an auth provider, configuring the callback URL, managing email notificatinos, and testing the connection to ensure successful integration.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Unlimited, and Performance editions.
User Permissions Needed
To access the Microsoft 365 and Azure Integration Guided Setup CLM Admin User
Note
Note Avoid refreshing your browser during the guided setup, as doing so may disrupt the Auth Provider configuration.
  1. In the guided setup, access the Auth Provider Setup by expanding Set Up the Auth Provider.
    Setting up the Auth Provider
  2. Create or select an Auth Provided:
    1. To create a New Auth Provider:
      • Click New Auth Provider.
      • In the Authentication Provider Details, enter:
        • Name: Enter an auth provider name.
        • Consumer Key: Enter your Azure App’s Application (client) ID.
        • Consumer Secret: Enter your Azure App’s Client Secret Value.
        • Execute Registration As: Select your system admin account.
        Adding auth provider details
    2. To select an existing auth provider:
      If you select an existing auth provider, only auth providers previously created for the Microsoft 365 integration are available.
      • Click Existing Auth Provider.
      • In the Name, select an auth provider name.
  3. Configure the callback URL:
    1. In the Guided Setup, click the copy icon to copy the callback URL.
      Copying callback URL
    2. Open your Microsoft Azure account, and click Overview.
    3. Click Add a Redirect URL next to Redirect URLs.
    4. Select Add a platform > Web.
    5. Paste the callback URL in Redirect URIs.
    6. Select Access tokens (used for implicit flows) and ID tokens (used for implicit and hybrid flows)
    7. Click Configure.
    8. If you have set up a partner community, go to the Auth Provider in Salesforce org.
    9. From the Experience Cloud Sites section, copy the callback URL.
    10. Open your Microsoft Azure account, and click Authentication.
    11. Go to Web > Redirect URLs, and click Add URL.
    12. Enter the Experience Cloud Site callback URL (copied previously), and save your changes.
  4. Test the Connection:
    When testing the connection, you'll be prompted to provide a business justification and must request consent from a Global Administrator. The Global Administrator will receive an email with the request details and can grant the required consent. If you continue to set up a Named Credential without obtaining consent, you'll see the same consent prompt again during the Named Credential authentication step, where you'll need to provide the business justification once more.
    1. Click Test Connection to verify the configuration.
      Testing the connection between Salesforce and Microsoft 365 and Azure
    2. Confirm that all details, such as name, provider, and ID, are correctly populated. If the details that appear are similar to the following image, select Yes.
    3. If you encounter an error, select No. Check the error messages and follow the steps mentioned in the Guided Setup to resolve each issue.
      Resolving any issues with the connection
    4. To test the connection after you fix the errors, click Test Connection. To reset Auth Provider details, click Start Over.
    5. Test the connection and, when the connection is successful, click Mark as Done.
 
Loading
Salesforce Help | Article