Read users in bulk mode
POST/user-ext-srv/bulkread/users
The Bulk Read API allows you to retrieve large volumes of user data efficiently. It supports advanced filtering, pagination via searchAfter, and consistent data snapshots using Point-In-Time (pit) queries.
Key Concepts
- Pagination with
searchAfter: To handle large datasets, this API uses a cursor-based pagination mechanism. It requires asortfieldto be specified, and each user in the response will include asortarray. To fetch the next page, provide thesortvalue of the last user from the current response as thesearchAftervalue in the next request. - Point-In-Time (PIT): Enabling a PIT session creates a consistent snapshot of the data. This ensures that all pagination requests see the exact same data state as it was when the session was initiated, preventing inconsistencies from data changes during export.
Usage without Point-In-Time (PIT)
- Initial Request: Send a
POSTrequest including asortfield(e.g.,updatedTime). - Process Response: Each user in the
usersarray will contain asortfield. - Next Page: Extract the
sortvalue of the last user in the response. Pass this value assearchAfterin your next request. - Completion: Repeat until the API returns an HTTP 204 No Content status.
Usage with Point-In-Time (PIT)
- Initial Request: Include
sortfieldand apitobject with akeepAliveduration (in minutes).\{"sortfield": "updatedTime","pit": \{"keepAlive": "5"\}\} - Extract PIT ID: The response will include a
pitId.\{"users": [...],"pitId": "gcSHBAM2Y2lkYWFz..."\} - Subsequent Requests: Provide the last user's
sortvalue assearchAfterand thepitIdasidinside thepitobject.\{"sortfield": "updatedTime","pit": \{"keepAlive": "5","id": "gcSHBAM2Y2lkYWFz..."\},"searchAfter": [1629375844777, 8589940405]\} - Completion: Continue the loop until the API returns an HTTP 204 No Content status.
Request
Responses
- 200
- 204
- 400
- 401
OK
No Content
Bad Request
Unauthorized