Maximum search results?

Anne Admin 1 Reputation point

I am setting the From parameter in my search to go through all results, but when I get to 1000 results I get an error that "BadRequestThe maximum allowed page size is 1000"

How do I page past 1000 items?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
2,093 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 16,566 Reputation points MVP

    The simple way to get pages of results is to use $top query parameter

    For example, the following URL requests all the users in an organization with a page size of 5, specified with the $top query parameter:$top=5

    More details can be found in the following reference

    --please don't forget to upvote and Accept as answer if the reply is helpful--