<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
0D51Y00008j8B0mSAEOkta Classic EngineSingle Sign-OnAnswered2024-04-15T11:09:28.000Z2020-06-17T17:58:54.000Z2020-06-24T18:57:22.000Z
  • User15807855251883082608 (Tier 2 - US East)

    Hello Rayhan,

     

    The sortBy query will work for search queries only when listing users.

     

    For example:

    curl -v -X GET \

    -H "Accept: application/json" \

    -H "Content-Type: application/json" \

    -H "Authorization: SSWS xxx" \

    "https://yourorghere.okta.com/api/v1/users?sortBy=created"

     

    If you encounter any issues with the above query I would recommend raising a ticket with support so we may troubleshoot further.

     

    More information can be found here

     

    Thanks!

    Expand Post
This question is closed.
Loading
How do I get Okta to return a sorted API response?