# Api/v2/users?page=?, paging is not working

**URL:** <https://devforum.okta.com/t/api-v2-users-page-paging-is-not-working/32600>\
**Category:** API\
**Created:** [March 13, 2025, 5:22pm UTC](https://devforum.okta.com/t/api-v2-users-page-paging-is-not-working/32600 "2025-03-13T17:22:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![imntest111](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@imntest111](https://devforum.okta.com/u/imntest111)\
**Post date:** [March 13, 2025, 5:22pm UTC](https://devforum.okta.com/t/api-v2-users-page-paging-is-not-working/32600/1 "2025-03-13T17:22:42Z")

</div>

Hi

I am using management api’s for migration , after initial importing 150+ users via user-import-export extension , i need to assign roles to all the users , but i am unable to retreireve all the users using api/v2/users?page=? , the paging works just for first 2 pages after that it just returns empty any idea why it does not work , i see all the users in the dashboard . A follow up would be if its possible to bulk assign roles also using import export extension

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [March 13, 2025, 5:29pm UTC](https://devforum.okta.com/t/api-v2-users-page-paging-is-not-working/32600/2 "2025-03-13T17:29:15Z")

</div>

That endpoint doesn’t look right, we don’t have an /api/v2/users endpoint. Are you talking about /api/v1/users as documented [here](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/)?

You can also see information about how to implement pagination for Okta’s endpoints, either in our API reference docs [here](https://developer.okta.com/docs/api/#pagination) or with the example in the following article: [How to Use Pagination when Making API Calls in Postman | Okta Help Center](https://support.okta.com/help/s/article/how-to-use-pagination-when-making-api-calls-in-postman?language=en_US)

---

<div class="post-metadata">

**Author:** ![imntest111](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@imntest111](https://devforum.okta.com/u/imntest111)\
**Post date:** [March 13, 2025, 6:13pm UTC](https://devforum.okta.com/t/api-v2-users-page-paging-is-not-working/32600/3 "2025-03-13T18:13:08Z")

</div>

Hi for me api/v1/ does not work i get 404 “not found” error , this is the documentation [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/users/post-users) , is there a way to assign roles during bulk import , also i tried using v2/jobs/post-users-imports but does not give me a way to update my domain in url and test api endpoint is disabled

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [March 13, 2025, 7:07pm UTC](https://devforum.okta.com/t/api-v2-users-page-paging-is-not-working/32600/4 "2025-03-13T19:07:48Z")

</div>

This community is dedicated to the Okta platform

I’d recommend reaching out in the community space for the Auth0 platform instead: [https://community.auth0.com/](https://community.auth0.com/)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [April 12, 2025, 7:08pm UTC](https://devforum.okta.com/t/api-v2-users-page-paging-is-not-working/32600/5 "2025-04-12T19:08:35Z")

</div>

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