Connectivity Guide - Client ID & Secret

Created by Dariusz Szczendzina, Modified on Tue, 21 May at 9:25 AM by Ben Gilbey

Client ID & Secret Value

This page contains a step-by-step guide to create Client ID and Client Secret to connect to Dynamics 365.

Firstly, we need to create an Azure AD app and set some parameters.

Follow these steps:

1. Go to https://portal.azure.com/#home

2. Log in using an account with administrator permission.

3. In the Azure portal, Expand the Portal Menu and select Azure Active Directory → App Registrations → New Registration

4. In the 'Register an application' page, enter your application's registration information,

a) Enter a suitable App Name.

b) Select Accounts in any organizational directory (Any Azure AD directory - Multitenant) option from the Supported account types.

c) Set RedirectURI (optional) to Public client/native (mobile & desktop).

d) Click Register to create an application.

5. This will bring you to the app overview page. Here, hover your curser over the Application (client) ID value, and select 'Copy to clipboard' icon to copy the value and save as you'll need this later.

6. Now, Set API Permissions:

a) Select API permissions tab from Portal Menu.

b) Click on Add a permission.

c) Select Dynamics 365 CRM from Microsoft APIs tab.

d) Click on Delegated Permissions and check the user_impersonation permission

e) Click on Add Permissions at the bottom.

7. Next, we must generate a Client Secret for the App. In the App click on Certificates & Secrets. Click on New client Secret.

8. Now, provide a name and choose Expire duration and click Add.

9. Copy the Client secret value as You will need to share it with DQ.

Note: This value can only been seen once, after you leave this page you will not be able to retrieve this value again.

Those are the steps to complete the registration of your application in Azure Active Directory.

D365 Application User

10. Creation of Application User and assigning role:

a) Configure Application User in Dynamics 365 Admin Centre

b) Sign in to the Power Platform Admin Centre (https://admin.powerplatform.microsoft.com/environments)  as a System Administrator.

c) Select Environments, and then select an environment from the list.

d) Select Settings.

e) Select Users + permissions, and then select Application Users.

f) Select + New App User to open the Create a New App User page.

g) Select + Add an App to choose the registered Azure AD application that was created for the selected User.

h) After selecting the App, now Select Add

i) The selected Azure AD app is displayed under App. Under Business Unit, select a business unit from the dropdown list.

j) After choosing a business unit, you can select Edit (Pencil) Icon for Security roles to choose security roles for the chosen business unit to add to the New Application User.

k) Now select DQGAdmin Role from Role List and click Save after that.

Note: You will need to install the DQForDynamics Solution for the DQGAdmin Role to be available.

l) Click Save.


Next Steps

After successfully creating your provisioning credentials, please complete the DQ for Dynamics™ Provisioning form.

Note: The account selected will be used to make the connection between our application and your Dynamics Instance. We support the use of Service accounts or non interactive User accounts. The relevant security roles will be assigned once our DQ for Dynamics Solution is installed into your environment.

After the provisioning form has been completed, DQ Global will be notified and will shortly enable you to access DQ for Dynamics™.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article