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


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

To register an app in Azure Active Directory, you must follow these steps.

Step 1: Go to https://portal.azure.com/

Step 2: Search for Application Registration

Register an App in Azure Active Directory

Click the App registration and you will see the following screen.

Register an App in Azure Active Directory


Step 3: Click New Registration

Register an App in Azure Active Directory


Step 4: Githe ve application a name and select the supported account type. In my case, I have selected the Accounts in any organizational directory (Any Azure AD directory - Multitenant)It is just for that who can use the application or access this API. 

Register an App in Azure Active Directory


Step 5: You can skip the Redirect URI option and click the register button

Register an App in Azure Active Directory


After the registration you can see the details like Application Client ID, Object ID, Tenant ID

Register an App in Azure Active Directory


Step 6: Now go to the Certificates & Secrets

Register an App in Azure Active Directory


Step 7: Click on New Client Secret

Register an App in Azure Active Directory


A dialog box will appear.

Step 8: Give a description of the client’s secret and duration and click add button.

Register an App in Azure Active Directory


Client secret is created successfully.

Register an App in Azure Active Directory


You can copy and paste the values to some safe place because they will be hidden after some time.

Step 9: Coming to our next point, go to the API permissions

Register an App in Azure Active Directory


You will see the following screen

Register an App in Azure Active Directory


Step 10: Click on Add a permission

Register an App in Azure Active Directory


Request API Permission dialog box will open

Register an App in Azure Active Directory


Step 11: Click on Dynamics CRM option

Register an App in Azure Active Directory


Click on Delegated Permissions

Register an App in Azure Active Directory


Select user_impersonation and click add permissions button

Register an App in Azure Active Directory


Step 12: Click on Grant Admin Consent

Register an App in Azure Active Directory


Click on Yes.

Register an App in Azure Active Directory


Admin consent confirmation is granted.

Register an App in Azure Active Directory


Stay tuned very little is left.

Step 13: Go to the Manifest

Register an App in Azure Active Directory


Step 14: Now we have to update allowPublicClient to true and oauth2AllowImplicitFlow to true.

Register an App in Azure Active Directory


Register an App in Azure Active Directory


Register an App in Azure Active Directory


Save the Manifest

Register an App in Azure Active Directory


Step 15: Go to Overview

Register an App in Azure Active Directory


Step 16: Add a redirect URI

Register an App in Azure Active Directory


It will ask you to add a platform. Click on add platform.

Register an App in Azure Active Directory


In Configure platform dialog box, click on the web.

Register an App in Azure Active Directory


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

Register an App in Azure Active Directory


Select Access tokens (used for implicit flows) and click configure button.

Register an App in Azure Active Directory


URI is added

Register an App in Azure Active Directory

So, this was the final step. Now you have finally configured the App in Azure Active Directory. If you want to read about the benefits of using the Azure AD app then you can read here why we create an app in the Azure Active Directory.

0 Comments

Thanks for commenting. Your comment will be live soon after approval.