SCIM Pagination is not session based hence Consumers SHOULD never assume repeatable results. For example, a request for a list of 10 Resources beginning with a startIndex of 1 may return different results when repeated as a Resource in the original result could be deleted or new ones could be added in-between requests. Pagination parameters and general behavior are derived from the OpenSearch Protocol.
The following table describes the URL pagination parameters.
Parameter | Description | Default |
---|---|---|
startIndex | The 1-based index of the first search result. | 1 |
count | Non-negative Integer. Specifies the desired maximum number of search results per page; e.g., 10. | None. When specified the Service Provider MUST not return more results than specified though MAY return fewer results. If unspecified, the maximum number of results is set by the Service Provider. |
The following table describes the query response pagination attributes specified by the SCIM Service Provider.
Element | Description |
---|---|
itemsPerPage | Non-negative Integer. Specifies the number of search results returned in a query response page; e.g., 10. |
totalResults | Non-negative Integer. Specifies the total number of results matching the Consumer query; e.g., 1000. |
startIndex | The 1-based index of the first result in the current set of search results; e.g., 1. |
GET /Users?startIndex=1&count=10 Host: example.com Accept: application/json Authorization: Bearer h480djs93hd8 { "totalResults":100, "itemsPerPage":10, "startIndex":1, "schemas":["urn:scim:schemas:core:1.0"], "Resources":[{ ... }] }}