Pagination support for api.sonarcloud.io/users/users

Hej all,

We just got notified, that the old user search api endpoint will be deprecated on 13th August 2025 and that we should switch to the new API endpoint api.sonarcloud.io/users/users
We tried that today and the overall switch seems to be easily doable, but unfortunately the new api endpoint does not support pagination parameters like the old one did.
This is of course bad, if you want to get a list of all users in your organization, because right now we are stuck on the first result page all the time and we only get 50 users by default because we cannot set page_size or page_index :frowning:

Does anyone know how to overcome this limitation?

Thanks in advance and best regards,
Tim

Hey there.

It looks like you can set these parameters, like below:

https://api.sonarcloud.io/users/users?organizationIds=<ID>&pageIndex=2&pageSize=500

But I don’t know why this isn’t in the Web API documentation. I’ve flagged this for attention.

Hej Colin,

Thanks for the swift response.
Indeed, this works like a charm.

Thanks again and best regards,
Tim

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.