Does search API still support pagination? Skip to main content
https://support.okta.com/help/answers?id=9062a000000dfnuqaw&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Sam MaguraSam Magura 

Does search API still support pagination?

The documentation (https://developer.okta.com/docs/api/resources/users#list-users-with-search) states that the user search API method supports pagination. 

I used the search functionality in the past (around 4 months ago) and here is how it worked. I would call the search api on my dev organization (dev-512814.oktapreview.com), and I would get two Link headers back on the request: one rel="self" link, and one rel="next" link. Making a request to the "next" link would give me the next page of the search results.

Now, when I try to search, I only get the rel="self" link. There is no "next" link. Without this next link, I cannot access the next page of the search results. Was this an intentional and permanent API change?


Here is the exact API call I am making:
GET {{oktaBaseUrl}}/users?limit=5&search=profile.costCenter eq "Portal"
(there are >50 users that match the search criteria)

If I do 
GET {{oktaBaseUrl}}/users?limit=5
instead, the "next" link is there in the headers as expected.
Nate QuesadaNate Quesada (Okta, Inc.)
Hi Sam,

It does but we've actually just discovered a bug with this in our Preview Environment and are working on a fix now. I will provide details once an update/fix has been deployed.

Thanks for your patience while we resolve this.

Best,
Nate
Nate QuesadaNate Quesada (Okta, Inc.)
Hi Again Sam,

Just a heads up, the Engineers have released a fix and is going live with our 2018.09 release. It has already hit the Preview tenants. Please take a look and let us know if you have any further issues with this.

Best,
Nate
Dylann FezeuDylann Fezeu (Customer First Programs)
Hello,

Thanks for posting your inquiry in Okta Community Portal.

​If you receive a great answer to your question(s), please help readers find it by marking it the best answer. Hover over the answer and click "Best Answer." 

Thank you,

​Dylann Fezeu
OHC Team