# GET a list of all user accounts

**URL:** <https://devforum.okta.com/t/get-a-list-of-all-user-accounts/19713>\
**Category:** Questions\
**Created:** [March 7, 2022, 3:13pm UTC](https://devforum.okta.com/t/get-a-list-of-all-user-accounts/19713 "2022-03-07T15:13:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hummingbird81](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@Hummingbird81](https://devforum.okta.com/u/Hummingbird81)\
**Post date:** [March 7, 2022, 3:13pm UTC](https://devforum.okta.com/t/get-a-list-of-all-user-accounts/19713/1 "2022-03-07T15:13:44Z")

</div>

Hello , I have read about the limit of 200 users when using GET request to list users. We have around 9000 user accounts, how can i modify the below curl command to get me every account ?

`curl -v -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: SSWS ${api_token}" "https://${domain}/api/v1/users?" > /tmp/okta_dump.txt`

I did read about the Pagination but couldn’t understand how to use pagination in the above curl command .  
As a workaround, i tried running this way, but it errors our saying “Request not valid”. I don’t know what is wrong with the syntax. Looks OK to me and i copied this from the Documentation.

```auto
curl -v -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: SSWS ${api_token}" \
"https://${yourOktaDomain}/api/v1/users?filter=status+eq+\"ACTIVE\""

```

Can someone pls assist ?

Thanks a lot.

---

<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 8, 2022, 6:55pm UTC](https://devforum.okta.com/t/get-a-list-of-all-user-accounts/19713/2 "2022-03-08T18:55:59Z")

</div>

Here’s a basic guide about pagination that walks you through how it works: [Pagination Overview | Okta Help Center](https://support.okta.com/help/s/article/Pagination-Overview?language=en_US)

To summarize: make your GET to /api/v1/users to receive the first 200 users (this is the max we will return as [per the API reference](https://developer.okta.com/docs/reference/api/users/#request-parameters-3)). In the response from Okta, you will receive a link header with `rel="next"`. You will then make your next request to _that_ URL to get the _next_ 200 users. Continue to do so until you receive all your users (and there is no `rel="next"` coming back from Okta).

If you are a developer and are familiar with one of the languages we have a management SDK/library for, you can look to use these SDKs instead, as they are designed to handle the pagination for you. We offer MGMT SDKs for [.NET](https://github.com/okta/okta-sdk-dotnet), [Golang](https://github.com/okta/okta-sdk-golang), [Java](https://github.com/okta/okta-sdk-java), [Node](https://github.com/okta/okta-sdk-nodejs), [PHP](https://github.com/okta/okta-sdk-php), and [Python](https://github.com/okta/okta-sdk-python).

---

<div class="post-metadata">

**Author:** ![Hummingbird81](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@Hummingbird81](https://devforum.okta.com/u/Hummingbird81)\
**Post date:** [March 9, 2022, 6:53am UTC](https://devforum.okta.com/t/get-a-list-of-all-user-accounts/19713/3 "2022-03-09T06:53:05Z")

</div>

Thanks Andrea, can you pls also take a look or have your team respond to this Qn:  
[Okta Identity Add-On for Splunk not importing a Full list of all users - Questions - Okta Developer Forums](https://devforum.okta.com/t/okta-identity-add-on-for-splunk-not-importing-a-full-list-of-all-users/19705)

---

<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:** [March 10, 2022, 6:53am UTC](https://devforum.okta.com/t/get-a-list-of-all-user-accounts/19713/4 "2022-03-10T06:53:22Z")

</div>

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