Fetch owners of list of groups

Joana Pedroso 60 Reputation points
2026-02-25T11:35:28.7766667+00:00

Hello,

We have an use case in our application in which we need to fetch the list of owners of several Entra groups. Right now we are doing one call per group, but we're facing performance issues with the page loading.

To fetch simple group information we are using this one https://graph.microsoft.com/beta/directoryObjects/getByIds, however, this does not include the list of owners. Is there any similar enpdoint offered by Azure Graph API that also includes the list of owners?

I was also taking a look at this batch fetching https://learn.microsoft.com/en-us/graph/json-batching however, it says there's a limitation of 20 requests in the body, which means we'd have to do a request for each 20 groups. Is there some other solution that would be more performant?

Best regards

Joana Pedroso

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

0 comments No comments

1 answer

Sort by: Oldest
  1. AI answer

    2026-02-25T11:36:11.08+00:00

    To fetch the list of owners for multiple groups in a more efficient manner, you can utilize the Microsoft Graph API's batch request feature. However, as you noted, there is a limitation of 20 requests per batch. This means that if you have more than 20 groups, you will need to send multiple batch requests.

    Currently, there is no single endpoint that allows you to fetch the owners of multiple groups in one call. You will need to use the following endpoint for each group to list its owners:

    GET /groups/{id}/owners
    

    To optimize performance, you can implement a batching mechanism in your application to group the requests into batches of 20. This way, you can minimize the number of round trips to the server while still adhering to the API's limitations.

    Additionally, if you are frequently needing to access group owners, consider caching the results to reduce the number of API calls made during subsequent requests.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer 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.