How to 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.

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

Step 4: Click on New registration.

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)

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

Step 6: Click on Register.

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

Step 8: Click on Certificates & secrets.

Step 9: Click on New client secret.

Step 10: Provide some Description and Choose Expires value.

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

Click on Add.

Step 11: Client secret is created successfully.

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.

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.

Step 13: Click on Add a permission.

You can see the list of all available APIs.

Step 14: Select Dynamics CRM API.

Step 15: Click on Delegated permissions and Expand Permissions.

Step 16: Select user_impersonation and click on Add permissions.

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

Step 17: Click on Grant admin consent for Microsoft.

Step 18: Click on Yes.

Dynamics CRM API permission was granted for Admin.

Step 19: Click on Manifest.

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

Click on Save.

Manifest is saved successfully.

Step 21: Click on Overview.

Step 22: Click on Add a Redirect URI.

Step 23: Click on Add a platform.

Step 24: Click on Web.

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.

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

Redirect URIs configured successfully.

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

Like and share your valuable feedback on this article.


Discover more from Arun Potti's Power Platform blog

Subscribe to get the latest posts to your email.

Leave a Reply