Microsoft Graph API Result Size Limit

Veizi Ioanna 10 Reputation points
2024-02-12T13:45:34.3833333+00:00

Hi, I have created a pipeline in Azure data factory which needs to extract all Active Directory groups from Microsoft Graph API. For this purpose I use the GET https://graph.microsoft.com/v1.0/groups query but it returns me only 100 records. Is there any parameter I can use to the query to return all the records (which are approximately 5000 records) ? Thanks a lot.

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

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2024-02-12T15:47:51.13+00:00

    Yes, this is fully discussed in the documentation for paging results here. Each request sends you the URL to the next set of results. You have to extract that value and keep calling the results until everything is read in. If you're able to use the Graph SDK then it can handle this for you automatically.

    0 comments No comments

  2. Veizi Ioanna 10 Reputation points
    2024-02-21T07:55:38.8333333+00:00

    Hi Taylor, I edited the pagination rules in Azure Data Factory as shown in the screenshot and managed to collect all the data. nextlink

    Thank you.

    0 comments No comments

Your answer

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