Azure AD App Registration for Dynamics 365 CE Online | Step-by-Step Guide

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


Explore a detailed, step-by-step guide on Azure AD app registration for Dynamics 365 CE Online. Learn how to securely register your custom app, ensuring smooth integration with our comprehensive tutorial. Looking to seamlessly connect your custom app with Dynamics 365 CE Online? You can achieve this by performing Azure AD app registration. In this user-friendly guide, we'll take you through the process step by step, ensuring your app securely integrates with your Dynamics 365 CE Online instance. Let's dive in!

Understanding Azure AD App Registration

Before we jump into registration, let's briefly understand what Azure AD app registration is and why it's crucial for your Dynamics 365 CE Online integration.

Azure AD app registration allows you to specify how your app verifies and communicates with Azure AD and other Microsoft services. Registering your app establishes trust between your application and Azure AD, ensuring safe access and data sharing.

Prerequisites

Before you start, make sure you have:

  • An Azure AD Account: You'll need an Azure AD account with sufficient permissions to register apps.
  • Access to Dynamics 365 CE Online: Ensure you can configure your app to work with your Dynamics 365 CE Online instance.

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.

Conclusion

Congrats! You've successfully completed Azure AD app registration, setting the stage for a seamless integration with Dynamics 365 CE Online. This straightforward guide equips you with the knowledge needed to securely configure your app for accessing and interacting with your Dynamics 365 instance.

Remember to follow Azure AD app registration best practices and define app permissions for a secure and efficient integration.

By following these steps, you're on your way to unlocking your custom application's full potential within the Dynamics 365 CE Online environment. Happy integrating!

Note: Always keep your app registration details and secrets secure to protect your application

 

FAQS

1. What is Azure AD app registration for Dynamics 365 CE Online?

Answer: It's the process of configuring your app to securely integrate with Dynamics 365 CE Online through Azure Active Directory.

2. Why is Azure AD app registration important?

Answer: Ensures secure access and data exchange between your app and Dynamics 365 CE Online.

3. What are the prerequisites for app registration?

Answer: You need an Azure AD account and access to your Dynamics 365 CE Online instance.

4. How can I grant admin consent for my app in Azure AD?

Answer: In your app registration, click "Grant admin consent for [your organization]" under "API permissions."

 


0 Comments

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