Search code examples
azure-active-directorymicrosoft-graph-apimicrosoft-graph-sdks

How to do pagination based on page numbers using Microsoft Graph API


In MS documentation about paging there is a certain way for paginating the resources. Instead of using skiptoken to reach next page of resources, want to paginate user resources based on page numbers. So that i don't have to use skip token 5 times to reach 6th page of resources and reach it directly.

How can i do this using MS Graph API. Is it possible?


Solution

  • Pagination based on the page number is not supported on user resource.

    Some resources support $skip query parameter which allows to set the number of items to skip at the start of a collection but $skip parameter is not supported by the endpoint https://graph.microsoft.com/v1.0/users