RECOMMENDATION: If you are using a version of The Portal Connector higher than 4.0, we strongly recommend utilizing the MVC based widgets and components to create your site. This documentation is for legacy purposes only and will soon be deprecated.
Set up Client Secret Connection to Dynamics
Steps in Microsoft Azure
-
Navigate to portal.azure.com and login.
-
Navigate to Azure Active Directory > App Registrations > New Registration

-
Register your Application.
-
Enter an Application name.
-
Select which account types you wish to access this API.
-
Click Register.

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

-
Create a new Client Secret for the Application.
-
Select Certificates & secrets > New Client Secret
-
Enter a description, select an expiry duration and click Add.

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

-
Grant Microsoft Dynamics permissions.
-
Select API Permissions > Add a Permission > Dynamics CRM
-
Select the checkbox for user_impersonation.
-
Click Add permissions.

Steps in Microsoft Dynamics 365
-
Login to your Dynamics 365 instance.
-
Under Settings, select Security > Users. Change the view to Application Users and click New.

-
Enter the Application user’s information.
-
Paste the application ID previously noted in the Azure component into the Application ID field.
-
Enter the user’s full name.
-
Enter the Primary Email and click Save (User Name field should be automatically populated based on the primary email).

-
Assign administrator permissions to the application user.
-
Select the user and click Manage Roles > System Administrator > OK

Steps in Sitefinity
-
Navigate to the backend of your portal site
-
Go to Administration > Portal Connector Configuration

-
Fill in the Dynamics CRM connection settings
-
Under Connection Type select Client Secret
-
Under Server URL, Enter the URL to your dynamics server using the appropriate format, examples of which are displayed below the field.
-
Under Application (client) ID, paste the Application (Client) ID noted previously in the Azure Active Directory section.
-
Under Client Secret, paste the Client Secret copied and noted previously in the Azure Active Directory section.

-
Click Save & Test Connection.