Creating users in batch mode using JDK

Jarque, Ruben (EXT) 1 Reputation point
2021-06-08T08:44:55.543+00:00

Hello,

We are trying to do the initial migration of users, but we have a huge list of users to migrate so we have to use batchmode for it.

I was reading through the documentation, and the example provided in https://learn.microsoft.com/en-us/graph/sdks/batch-requests?tabs=java but it's too specific and I'm not sure how to create multiple users using the SDK (if possible).

I was able to create a user using "normal" non-batch mode, using objectIdentity and then using the graphClient.users().buildRequest().post(user).

It would be great to have one example on how to create a user using batch mode.

Thanks!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,645 questions
{count} votes