<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
0D54z0000AIJPBfCQPOkta Classic EngineAPI Access ManagementAnswered2026-02-10T09:00:39.000Z2025-01-08T12:32:14.000Z2025-04-08T14:22:28.000Z

zl65l (zl65l) asked a question.

pagination broken?

We use the UserAPI. When we call

userApiClient.listUsers(CONTENT_TYPE, null, after, limit, null, search, sortBy, sortOrder),

with the following parameters:

search: profile.accountId eq "xxx" and type.id eq "yyy"

after: 00u1aadtre06z5eVR358

limit: 30

sortBy: profile.employeeNumber

sortOrder: desc

we get this:

com.okta.sdk.resource.client.ApiException: {"errorCode":"E0000031","errorSummary":"Invalid search criteria.","errorLink":"E0000031","errorId":"oae-1ADf2njTOSCk7A-_H2A8w","errorCauses":[{"errorSummary":"Invalid cursor."}]}

Now, the "after" string is taken from the first call to the same function. So the first time it works, the second fails.

Investigation shows that it only happens when sortBy is set.

How can I get this to work?

/Klaus


This question is closed.
Loading
pagination broken?