Get all users with a status of Password Reset Skip to main content
https://support.okta.com/help/answers?id=9062a000000quqbqac&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Michael PogsonMichael Pogson 

Get all users with a status of Password Reset

Hi,
im trying to use the api to get all users who have a status of Password reset.  all I see from the api is PROVISIONED and thats not super helpful.  is there something im missing?

Thanks,
Michael 
Best Answer chosen by Michael Pogson
Thomas KirkThomas 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.

All Answers

Thomas KirkThomas 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
Michael PogsonMichael Pogson
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 KirkThomas 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.
This was selected as the best answer