Pagination for Microsoft Graph Delta API does not work

testfestAdmin 1 Reputation point
2022-11-15T22:30:33.537+00:00

Hi There,

I was trying to make a delta request for users with pagination (which means I want to customize the pagesize), and I added the 'top=2' query parameters in my initial GET request (the request is shown as below). However, seems the top query parameter does not work at all for the users delta query, I am still getting the full list of users that are stored in the Microsoft Azure Directory.
Could you help how can I get delta users with pagination in the initial and subsequent request?

https://graph.microsoft.com/v1.0/users/delta?$top=2&$select=displayName,givenName,surname

For example: 10 users in the azure directory, and set the page size=2 in the request
then, we should get 2 users per request,

and then add 3 users, we should also get 2 delta users per request.

Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
725 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,786 Reputation points
    2022-11-15T23:02:25.013+00:00

    Hello @testfestAdmin

    Thanks for reaching out!

    Based on my analysis, there are some restrictions on using $top Query parameter for user resources. Use of $top parameter is not supported in this context. Please refer this documentation to know more about use of query parameters for user resources in delta tracking.

    Hope this helps.

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