[New] Pagination for SCIM Users and Groups Endpoints

Summary

Both GET /scim/Users and GET /scim/Groups can now return paginated results. Paging is opt-in: send startIndex and count, or cursor to enable pagination. If you do not send those parameters, the call returns the full list.

This is backwards compatible with existing clients that do not paginate. startIndex, itemsPerPage, and nextCursor are included only when the request asks for a page. They are omitted otherwise. totalResults still indicates the total count of matching resources.

Who is affected

This applies to all Service Accounts calling the SCIM API. No migration is required. Integrations that list users or groups without startIndex, count, or cursor are unaffected.

Clients that want paged results opt in by adding those query parameters. Equality filters are unchanged and are not paged: filter=userName eq "…" on Users and filter=displayName eq "…" on Groups still return the matching resources directly.

Timeline

This is available now.

How paging works

Both list endpoints accept:

Parameter Description
startIndex 1-based index of the first result to return. Values below 1 are treated as 1. Defaults to 1.
count Page size. Defaults to 100. Values above 1000 are capped at 1000.
cursor Opaque cursor from a previous response. When present, it takes precedence over startIndex.

A paged response adds:

Field Description
totalResults Number of matching users or teams in the workspace (not the size of this page).
startIndex Index used for this page. Omitted on cursor requests.
itemsPerPage Number of resources in this page.
nextCursor Pass this as cursor to read the next page.
GET /scim/Users?startIndex=1&count=2
{
  "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
  "totalResults": 5400,
  "startIndex": 1,
  "itemsPerPage": 2,
  "nextCursor": "<opaque cursor>",
  "Resources": []
}

An expired or malformed cursor returns 400 Bad Request with scimType invalidCursor. A non-integer startIndex or count returns 400 Bad Request with scimType invalidValue.

Why we’re making this change

Unpaged SCIM list calls return the whole directory in one response. Paging lets an identity provider sync users and teams in bounded pages, including directories that may not fit in a single response for large workspaces. Existing syncs that do not send paging parameters continue to receive the full list.

Resources

1 Like