How To Register An App In Azure Active Directory For Dynamics 365 CE Online

Register an App in Azure Active Directory for Dynamics 365 CE Online

App registration in Azure Active Directory, enables a user with Power Apps user account to connect to their Microsoft Dynamics/ Dataverse environment from external client applications using OAuth Authentication.

App registration in Azure Active Directory is typically done by ISVs who want to develop external client applications to read and write data in Dataverse.

Follow the below steps to Register an App in Azure Active Directory.

Pre-requisite: Follow the below link and create Dynamics CE 30 days Trial Version.

How to create Microsoft Dynamics 365 CE Online 30 Days Trial Version?

Or

If you already have existing Dynamics 365 CE credentials, then go to Step 1.

Step 1: Click here and login into Azure Portal.

Step 2: In the Search bar, type App registrations.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 3: Click on App registrations in the Search results.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 4: Click on New registration.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 5: Provide a Name for your App and select the required “Supported account types“.

In this example, I am choosing Accounts in any organizational directory (Any Azure AD directory – Multitenant)

Register an App in Azure Active Directory for Dynamics 365 CE Online

Note: Click on Help me choose to know more about Supported account types.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 6: Click on Register.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 7: App has been registered successfully and you can see Application (client) IDObject ID and Directory (tenant) ID.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 8: Click on Certificates & secrets.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 9: Click on New client secret.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 10: Provide some Description and Choose Expires value.

In this example, I am choosing the Recommended: 6 months option.

Click on Add.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 11: Client secret is created successfully.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Copy and Paste the Client Secret Value in a secured place and this value will be masked after some time and will be shown like the below.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Note: This Secret Value will work till the Expiration date provided while creating the Secret. Later you need to create the new Secret.

Step 12: Click on API permissions.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 13: Click on Add a permission.

Register an App in Azure Active Directory for Dynamics 365 CE Online

You can see the list of all available APIs.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 14: Select Dynamics CRM API.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 15: Click on Delegated permissions and Expand Permissions.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 16: Select user_impersonation and click on Add permissions.

Register an App in Azure Active Directory for Dynamics 365 CE Online

You can see the Dynamics CRM API Permission once it is successfully created.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 17: Click on Grant admin consent for Microsoft.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 18: Click on Yes.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Dynamics CRM API permission was granted for Admin.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 19: Click on Manifest.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 20: Update allowPublicClient to true and oauth2AllowImplicitFlow to true.

Click on Save.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Manifest is saved successfully.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 21: Click on Overview.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 22: Click on Add a Redirect URI.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 23: Click on Add a platform.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 24: Click on Web.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 25: Provide the Redirect URI.

For Development, you can provide the URL as http://localhost under Redirect URIs.

And for the Other environments, provide the proper Redirect URI.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Step 26: Select the Access tokens (used for implicit flows) and Click on Configure.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Redirect URIs configured successfully.

Register an App in Azure Active Directory for Dynamics 365 CE Online

Hope you have successfully registered and configured the App in Azure for Dynamics 365 CE.

Like and share your valuable feedback on this article.


Similar Articles