Create user in AAD using Power Automate.

Hello Guys,

In our previous blog we have seen how we we can send URLs in email using Power Automate Flow.  Today we will see how we can create user in Azure Active Directory using Power Automate Flow.



Do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends.

Consider a scenario where we are using D365 CRM for storing our internal employee information. We are using contact table for the same. Now we want whenever a new employee joins organization a new user account should also be created in AAD.

First of all we will see what information is required for creating user in AAD.



As you can see in above image we have two users available. Now click on New User.



So here to create a new user we need above information to be filled. Now let's see how we can achieve this using Power Automate Flow.

We will be creating one automated flow which will be triggered whenever a new employee record will be created.

Visit https://make.powerautomate.com and choose your working environment.

Now click on New and select Automated Flow and provide information as shown below and click on create.



Rename and configure first step as shown below:



Now add a new step and search create user. This will ask for sign in. Provide admin credentials and follow the  steps. Once done configure the step as shown below:



Note: Here in user principle name we have to specify domain name.

So our flow is ready. Now we will create one new employee and check whether a new user is added in AAD or not.



Now we will check Admin Center.



Flow run.



Hope it helps...

Comments

Popular posts from this blog

Read Only Sub Grid & Editable Sub grid in Dynamics 365

Using Pipelines in Power platform for deploying solutions to environments.

Understanding Sales Process in D365.