Try the getByIds method: https://learn.microsoft.com/en-us/graph/api/directoryobject-getbyids?view=graph-rest-1.0&tabs=http
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am testing Azure AD graph api-users, and I'm interested about a specific capability that I couldn't find. I want to be able to attach to the request 100 id's/userPrincipalNames and get back an array of the user objects of these id's/userPrincipalNames(just like /users/{id} API,but for many ids), Is there an API of AZURE AD GRAPH API that can do it?
I was able to make a workaround, by using the GET /users API with query parameters(filter/search) but I didn't find it to be the best solution because the URL can't be too long(I had to put 100 ids to the search parameter).
Thanks
Try the getByIds method: https://learn.microsoft.com/en-us/graph/api/directoryobject-getbyids?view=graph-rest-1.0&tabs=http