<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
0D54z00007Xu3IcCAJOkta Classic EngineAPI Access ManagementAnswered2022-05-11T11:35:39.000Z2022-04-03T11:35:47.000Z2022-05-11T11:35:39.000Z
    • Thank you for your reply.

      We have a search query which is:
      (profile.roleSearchValue eq "Customer" or profile.roleSearchValue eq "Partner" or profile.roleSearchValue eq "RestrictedPartner")

      (c#)

      And the sortby parameter is "passwordChanged"

      Could it be that it can’t sortby when some of the values are null? Is there no check?

      Thanks in advance, tehila
      Expand Post
  • @Paul S. (Okta, Inc.)​ we are using the sdk with "search" and "sortby"

    _oktaClient.Users.ListUsers(after: prevPageId, limit: pageSize, search: filterStr, sortBy: sortBy, sortOrder: direction);

     

    filterStr = (profile.roleSearchValue eq "Customer" or profile.roleSearchValue eq "Partner" or profile.roleSearchValue eq "RestrictedPartner")

     

    when

    sortBy= "passwordChanged"

    (if sortBy="profile.organization" it all works great)

    an error is thrown

    Invalid search criteria. (400, E0000031): Invalid search attribute.

     

    any help\suggestion would be appreciated

    thanks in advance

    Expand Post
This question is closed.
Loading
okta api sortby "passwordchanged" throws exception