Set up Client Secret Connection to Dynamics

Steps in Microsoft Azure

  1. Navigate to portal.azure.com and login.

  2. Navigate to Microsoft Entra ID (formerly Azure Active Directory) > App Registrations > New Registration

    Step 2 in Microsoft Azure

  3. Register your Application.

    1. Enter an Application name.

    2. Select which account types you wish to access this API.

    3. Click Register.

    Step 3 in Microsoft Azure

  4. Copy the Application (client) ID and note it for later use.

    Step 4 in Microsoft Azure

  5. Create a new Client Secret for the Application.

    1. Select Certificates & secrets > New Client Secret

    2. Enter a description, select an expiry duration and click Add.

      Step 5 in Microsoft Azure

  6. Copy the client secret and note it for later use. Make sure to copy the Value field, as below.

    Step 6 in Microsoft Azure

  7. Grant Microsoft Dynamics permissions.

    1. Select API Permissions > Add a Permission > Dynamics CRM

    2. Select the checkbox for user_impersonation.

    3. Click Add permissions.

      Step 7 in Microsoft Azure

Steps in Power Platform admin center

  1. Login to https://admin.powerplatform.microsoft.com/environments and select your environment.

  2. Under Settings, select Users + permissions >  Application users.

     
  3. In the Applications users page, select + New app user. A side menu slider will appear. Here you will:

    1. Add the App you just created from Microsoft Entra 

    2. Select the Business unit which points to your CRM
    3. Edit the Security roles and add System Administrator and System Customizer roles before finally clicking Create. 

Steps in Sitefinity

  1. Navigate to the backend of your portal site

  2. Go to Administration > Portal Connector Configuration

    Step 2 in Sitefinity

  3. Fill in the Dynamics CRM connection settings

    1. Under Connection Type select Client Secret

    2. Under Server URL, Enter the URL to your dynamics server using the appropriate format, examples of which are displayed below the field.

    3. Under Application (client) ID, paste the Application (Client) ID noted previously in the Azure Active Directory section.

    4. Under Client Secret, paste the Client Secret copied and noted previously in the Azure Active Directory section.

    Step 3 in Sitefinity

  4. Click Save & Test Connection.