Share via

Microsoft Graph API | Performance

Abhay Chandramouli 1,061 Reputation points
2022-07-26T07:14:10.25+00:00

Hi,

I am trying to create millions of users in Azure AD B2C using Graph API.
I have tried json batched requests as well and single requests as well of the create user api.

What I have observed is that it takes a lot of time to actually complete.

It takes almost 10-11 hrs for Graph API - single mode - to complete
It take 5 hrs for batches graph api to complete - but most of them return errors for throttling issues. So I would say it did not complete.

Am I chasing a unreasonable target to create 2 million users in 4hrs using Graph API ?
If not how to achieve this ?

or is there a better way to achieve this ?

Microsoft Security | Microsoft Entra | Microsoft Entra External ID

Answer accepted by question author

Shweta Mathur 30,456 Reputation points Microsoft Employee Moderator
2022-07-27T06:24:34.73+00:00

Hi @Abhay Chandramouli ,

Thanks for reaching out.

I understand you are looking to add bulk users in Azure AD B2C and facing throttling issues.

Using Graph API, JSON batching is most reasonable to combine multiple requests, but there a limit 20 users/request in batch which would take a lot of time to add 2 million users.

However, there is a blog mentioning Powershell script to create bulk users in Azure AD B2C.

Hope this will help you to import bulk users.

Thanks,
Shweta

---------------------------------

Please remember to "Accept Answer" if answer helped you.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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