<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
0D50Z00008C3jb2SABOkta Classic EngineIntegrationsAnswered2024-04-30T09:18:25.000Z2018-01-25T23:49:23.000Z2018-08-12T04:14:13.000Z
  • Thomas Kirk (Okta, Inc.)

    I think I understand the issue.

     

    ​If the user never had a password and you activate them, they will have a status of PROVISIONED via the API and Passowrd Reset in the UI. 

     

    If a user had a password, and you reset (not temp password flow), they are moved into RECOVERY via the API and Password Reset in the UI.

     

    {{url}}/api/v1/users?filter=status eq "RECOVERY" or status eq "PROVISIONED" should get you all the users that end up in the UI as "Password Reset". All other statuses have their own UI status associated with them.
    Expand Post
    Selected as Best
  • Thomas Kirk (Okta, Inc.)

    Hey Michael,

     

    The state model for Users Status can be found here: https://developer.okta.com/docs/api/resources/users#user-status.

     

    You'll notice from the diagram that you can move a user from ACTIVE to RECOVERY via Reset Password. With that knowledget, your api call should look something like:

     

    {{url}}/api/v1/users?filter=status eq "RECOVERY"

     

    Thomas
    Expand Post
  • j5v7c (j5v7c)

    These users have a state of 'PROVISIONED' via the API but the UI says 'Password reset'.  Is there any way to get the set of users in the UI that have password reset set as thier status.
  • Thomas Kirk (Okta, Inc.)

    I think I understand the issue.

     

    ​If the user never had a password and you activate them, they will have a status of PROVISIONED via the API and Passowrd Reset in the UI. 

     

    If a user had a password, and you reset (not temp password flow), they are moved into RECOVERY via the API and Password Reset in the UI.

     

    {{url}}/api/v1/users?filter=status eq "RECOVERY" or status eq "PROVISIONED" should get you all the users that end up in the UI as "Password Reset". All other statuses have their own UI status associated with them.
    Expand Post
    Selected as Best
This question is closed.
Loading
Get all users with a status of Password Reset