A unified data governance solution that helps manage, protect, and discover data across your organization
For the Microsoft Purview REST APIs, pagination fields are only returned when the service actually needs to paginate the result set. There is no separate configuration switch to “turn on” skipToken or nextLink.
Key points based on the documented patterns:
- Pagination is conditional on result size
For list-style APIs, pagination metadata is emitted only when the response cannot return all items in a single page:- If the total number of items is less than or equal to the default page size, the response is returned as a single page and no pagination token/next link is included.
- When the result set exceeds the default page size, the service returns a pagination mechanism (for example, a
nextLinkor token) that the client must follow to retrieve subsequent pages.
- Microsoft Graph list APIs return an
@odata.nextLinkonly when there are more pages to fetch and may use$skipor cursor-based tokens depending on the resource. - Learn Platform APIs use a
nextLinkfield only when there is another page of results to retrieve. - Some OData-based services use
$skiptokenfor server-driven paging; the token appears only when the server decides to paginate.
- Token/nextLink is opaque and request-driven
When pagination is triggered, the service returns:- A cursor/URL (for example,
nextLink) that already encodes the necessary state (such as a token or skip value). - Clients should not construct these tokens manually; instead, they should:
- Inspect the response for
nextLink(or equivalent). - If present, call that URL as-is to get the next page.
- Repeat until no
nextLinkis returned.
- Inspect the response for
- A cursor/URL (for example,
- Purview Data Map APIs and pagination
The Purview Data Map APIs show the same pattern:- For large result sets (for example, glossaries, terms, categories, or assigned entities), the documentation explicitly recommends using
limitandoffsetquery parameters to page through data when a single call would be too large or may time out. - When the dataset is small enough, a single call returns all results and no additional pagination metadata is needed.
- When the dataset is large, using
limit/offsetor related pagination parameters is required to avoid timeouts and to retrieve data page by page.
- For large result sets (for example, glossaries, terms, categories, or assigned entities), the documentation explicitly recommends using
- Why
skipToken/nextLinkmay not appear in current tests
For the specific endpoints being tested (List Data Sources, List Scans by Data Source, List Scan History, List Policies):- If the environment currently has only a small number of data sources, scans, scan history entries, or policies, the responses will fit within the default page size.
- In that case, the service returns a single page and does not include
skipTokenornextLink, which matches the documented behavior of other Microsoft APIs that use server-driven paging.
- How to validate pagination behavior
To observe pagination in practice:- Ensure the relevant collection is large enough (for example, many data sources, scans, or policies) so that the service must paginate.
- Call the list endpoint without specifying a very large page size (or using the default).
- Inspect the response for a pagination field (
nextLinkor similar). - Follow that link to retrieve subsequent pages until it is no longer present.
In summary, no extra configuration is required. skipToken/nextLink (or equivalent pagination metadata) are returned only when the result set exceeds what the service returns in a single page, which is determined by the default or requested page size.
References: