<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008G7VKrSANOkta Classic EngineIntegrationsAnswered2025-02-27T21:17:39.000Z2018-02-27T15:30:35.000Z2018-03-13T00:11:31.000Z
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.

  • NateV (Okta on Okta)

    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
    Expand Post
  • NateV (Okta on Okta)

    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
    Expand Post
  • j5v7c (j5v7c)

    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
    Expand Post
This question is closed.
Loading
Does search API still support pagination?