How to submit a batch request using directoryObject: getByIds

Haneef Mohd Fairuz 0 Reputation points
2023-11-02T06:37:31.2366667+00:00

Hello

My application uses Microsoft Graph API. We'd like to perform batch requests to grab a large number of AD users via the getByIds API. But have not found success despite sticking to the syntax provided in the examples. The examples provided in the batch request tutorial do not show getByIds being used.

Is it bugged? Can someone confirm the correct way to do this? Please show a working example in response if possible.

Thanks

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,406 Reputation points
    2023-11-02T09:19:19.3933333+00:00

    Hi @Haneef Mohd Fairuz

    Did you receive any errors? It works fine for me. Below is a working example.

    User's image

    By the way, the Graph API doesn't support on-premises AD, it's only available in Azure AD.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


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.