# Expire\_password API is not working for Staged and Suspended user

**URL:** <https://devforum.okta.com/t/expire-password-api-is-not-working-for-staged-and-suspended-user/7268>\
**Category:** API\
**Tags:** api\
**Created:** [December 10, 2019, 1:42pm UTC](https://devforum.okta.com/t/expire-password-api-is-not-working-for-staged-and-suspended-user/7268 "2019-12-10T13:42:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananddhage](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ananddhage](https://devforum.okta.com/u/ananddhage)\
**Post date:** [December 10, 2019, 1:42pm UTC](https://devforum.okta.com/t/expire-password-api-is-not-working-for-staged-and-suspended-user/7268/1 "2019-12-10T13:42:56Z")

</div>

Hi All,

I am trying to expire an users password which are in Suspend and Staged status.  
API used - url/users//lifecycle/expire\_password

This API is responding with error “Password reset failed”.  
Does any one know why this API is not working for an user having status Staged and Suspended?

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [December 11, 2019, 2:22am UTC](https://devforum.okta.com/t/expire-password-api-is-not-working-for-staged-and-suspended-user/7268/2 "2019-12-11T02:22:47Z")

</div>

Hi @ananddhage

What is the use-case that you would like to achieve by expiring the password for staged and suspended users?

---

<div class="post-metadata">

**Author:** ![ananddhage](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ananddhage](https://devforum.okta.com/u/ananddhage)\
**Post date:** [December 11, 2019, 6:27am UTC](https://devforum.okta.com/t/expire-password-api-is-not-working-for-staged-and-suspended-user/7268/3 "2019-12-11T06:27:30Z")

</div>

Hi @dragos,

1. From my application if admin tried to set an password for user then it has to first change the users password by some default password.
2. Then he will send an expire password request for the same user.  
Whenever the user tried to login to Okta he has to change that password at very first login attempt because it is expired in first step.  
Thanks!!!

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 18, 2024, 12:39am UTC](https://devforum.okta.com/t/expire-password-api-is-not-working-for-staged-and-suspended-user/7268/4 "2024-01-18T00:39:06Z")

</div>

Closed on January 18, 2024, 12:39am UTC


