Closed cincom-nuryupin closed 4 years ago
Hi @cincom-nuryupin ,
Thank you for your question.
This is a well-known issue, you can find more info here: https://developer.okta.com/docs/reference/api/users/#list-users-with-search.
If you already know the userId
, use GetUserAsync()
instead.
For more details about API issues, I suggest reaching out to our support team ( developers@okta.com ) or post it on the Okta Developer Forum instead. They can examine the details of your particular use case and suggest solutions.
Okta SDK v1.4.2 I'm running integration tests in postman. The sequence is:
When 2 request is executed ListUsers() return users with status "Active" but they should be "Suspended", therefore logic for unsuspension fails.
HOWEVER, if you call ListUsers().ToList() enough times, it will return correct status, which is "SUSPENDED" for both users.
I suspect there has to be some timing issue. Is there a away to avoid this behavior?