Integrate Dynamics 365 HR with Azure AD


In this article, we will see how to integrate Dynamics 365 HR with Azure AD. Currently, there is no functionality available within Dynamics 365 HR. It is very useful for partner/customer to develop by using Power Automate, Azure AD connector.

Below points are covered in this article.

  1. How to create a user in AD when new worker is hired
  2. How to update a user in AD when worker information is changed
  3. How to disable the user in AD group.

Introduction :

What is Azure AD :

Azure Active Directory (Azure AD) is Microsoft’s cloud-based identity and access management service, which helps your employees sign in and access resources in:

  • External resources, such as Microsoft 365, the Azure portal, and thousands of other SaaS applications.
  • Internal resources, such as apps on your corporate network and intranet, along with any cloud apps developed by your own organization. For more information about creating a tenant for your organization.

What is Dynamics 365 HR :

Microsoft Dynamics 365 Human Resources is a true software as a service (SaaS) that provides continuous, touchless service updates. These updates contain both application and platform changes that often provide critical improvements to the service, including regulatory updates.

Pre-requisite:

  1. Administrator access to use Azure AD connector
  2. Access to Power Automate

Assumption :

  1. Create/Hire an employee with a unique primary email address
  2. Primary mobile phone
  3. Worker Number should be available in Job Positions entity to fetch (Department, Job Title)

How to create a user in AD when new worker is hired

Here, we need to create a Power automate with Azure AD connector. Make sure you should have an administrator access to use Azure AD connector.

Below is the definition of Power Automate.

Demo 1 :

  1. Login to Dynamics 365 HR
  2. Hire a new worker with unique primary email address and must have a valid position

Add primary email address

Test flow:

The flow ran successfully.

The use should receive email now.

Validate the data in Azure AD

The user is created in Azure AD.

How to update a user in AD when worker information is changed

Below is the definition of Power Automate.

Demo 2 :

Update the first name of Flora to Mrs. Flora

It should look like now.

Test flow :

The flow ran successfully.

Validate the data in Azure AD

The first name is changed in Azure AD.

How to disable the user in AD group.

This is standard template available in Power automate to disable a user from all azure AD groups.

Demo 3:

  1. Run the flow
  2. Prerequisite’s to disable the user in Azure AD.

Primary Email Address

Based on the email address the worker details will be retrieved from a worker entity in CDS.

Click OK to run

  1. Based on the email address the user details and user groups will be retrieved from Azure AD.
  2. User will be disabled in Azure AD
  3. User will be removed from all the associated groups in Azure AD

Trigger an email to Admin as User has been removed from all the azure groups.

In this way, we can integrate Dynamics 365 HR with Azure AD.

If you like this article, feel free to share it others who might find it helpful. If you have any questions, feel free to get in contact with me.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑