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 ?
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.
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). 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, Golang, Java, Node, PHP, and Python.