Hey I am trying to build a user directory with a search, but it seems like there is a cap at 1000 users to be returned…
I tried playing with pageSize and re-run calls but that did not work…
Any suggestion?

Hey I am trying to build a user directory with a search, but it seems like there is a cap at 1000 users to be returned…
I tried playing with pageSize and re-run calls but that did not work…
Any suggestion?

Best answer by jvdc
Hey, in the end I managed via discussing with someone from support. I'll share here their feedbakc which helped!
For a full user directory, you'll want to paginate through /user instead of pulling everyone in one call. The endpoint supports:
pageSize keep at 100 since that's working reliably for youpage page number, starting from 1GET /user?pageSize=100&page=1
GET /user?pageSize=100&page=2
GET /user?pageSize=100&page=3
...
To know when to stop: the response includes a statistics object (which you already filter out in your Jinja template) that contains the total user count. Use it to calculate total pages, or just loop until a page returns an empty list / fewer than pageSize results.
Recommendations:
pageSize=100, known to work without 422 or timeout issues./user endpoint supports filters like createdAfter / updatedAfter useful for syncing only new/changed users.
Full API reference: https://api2-eu-west-1.insided.com/docs/
If you ever had a profile with us, there's no need to create another one.
Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.