Azure AD Batch import users ( about 100k from different directories)

Cloudy 206 Reputation points
2022-09-29T06:27:24.413+00:00

Hi all !

I'm thinking about the best solution to merge many directories (on-prem AD, AAD, ...) into one directory ( AAD ).
There are about 30/50k Users on each source directory.

I'm not able to find if there are limits/throttling on Azure AD users creation, so i'm thinking about using a powershell script or doing it by Graph API.

Do someone have any idea on how to achieve it the best ?

Thanks at all for your help !

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,271 questions
0 comments No comments
{count} votes

Accepted answer
  1. 2022-09-29T19:54:07.893+00:00

    Hello @sbastiendillier-8557 and thanks for reaching out. There are several options here. If it's a one time only import the easiest is to write PowerShell script that adds a user at a time, this authenticating as a User Administrator or similar Azure AD role. A faster way is to use batching, but since this is not yet supported in the PowerShell you will have to do it in JavaScript, TypeScript or C#. Throttling will happen if Identity and access service limits are surpassed or in situations when the services are under heavy load. In any case your script should implement a retry strategy based on Best practices to handle throttling and Throttling and batching.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.