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

**URL:** <https://community.sonarsource.com/t/pagination-support-for-api-sonarcloud-io-users-users/144029>\
**Category:** SonarQube Cloud\
**Created:** [July 8, 2025, 12:41pm UTC](https://community.sonarsource.com/t/pagination-support-for-api-sonarcloud-io-users-users/144029 "2025-07-08T12:41:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bahag-klickst](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bahag-klickst/32/70619_2.png) [@bahag-klickst](https://community.sonarsource.com/u/bahag-klickst)\
**Post date:** [July 8, 2025, 12:41pm UTC](https://community.sonarsource.com/t/pagination-support-for-api-sonarcloud-io-users-users/144029/1 "2025-07-08T12:41:23Z")

</div>

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](http://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 ☹

Does anyone know how to overcome this limitation?

Thanks in advance and best regards,  
Tim

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [July 8, 2025, 1:35pm UTC](https://community.sonarsource.com/t/pagination-support-for-api-sonarcloud-io-users-users/144029/2 "2025-07-08T13:35:26Z")

</div>

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](https://sonarcloud.io/web_api/users/users?deprecated=false). I’ve flagged this for attention.

---

<div class="post-metadata">

**Author:** ![bahag-klickst](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bahag-klickst/32/70619_2.png) [@bahag-klickst](https://community.sonarsource.com/u/bahag-klickst)\
**Post date:** [July 8, 2025, 2:35pm UTC](https://community.sonarsource.com/t/pagination-support-for-api-sonarcloud-io-users-users/144029/4 "2025-07-08T14:35:28Z")

</div>

Hej Colin,

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

Thanks again and best regards,  
Tim

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [July 16, 2025, 6:28am UTC](https://community.sonarsource.com/t/pagination-support-for-api-sonarcloud-io-users-users/144029/6 "2025-07-16T06:28:47Z")

</div>

Closed on July 16, 2025, 6:28am UTC

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