# Password expired but "Change password not allowed on specified user"

**URL:** <https://devforum.okta.com/t/password-expired-but-change-password-not-allowed-on-specified-user/13973>\
**Category:** Questions\
**Created:** [April 26, 2021, 6:27pm UTC](https://devforum.okta.com/t/password-expired-but-change-password-not-allowed-on-specified-user/13973 "2021-04-26T18:27:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drs](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/drs/32/2820_2.png) [@drs](https://devforum.okta.com/u/drs)\
**Post date:** [April 26, 2021, 6:27pm UTC](https://devforum.okta.com/t/password-expired-but-change-password-not-allowed-on-specified-user/13973/1 "2021-04-26T18:27:21Z")

</div>

We’re trying to test Okta’s behavior when a password expires. We’re using the Okta-hosted sign-in widget. We have a user whose password is expired. When they try to log in, they are prompted to change their password via the widget. However, when they try to change their password, they are getting a message:

> Change password not allowed on specified user

![image](https://global.discourse-cdn.com/oktadev/original/2X/6/606cf9df37cdee6f914fb7fb6ea6c8f1cb09c7f6.png)

The user’s status is “Password expired. User is now in one-time password mode.” and they are managed by Okta. Their prior password was initially set by a password inline hook.

What could cause this?

---

<div class="post-metadata">

**Author:** ![drs](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/drs/32/2820_2.png) [@drs](https://devforum.okta.com/u/drs)\
**Post date:** [April 28, 2021, 6:38pm UTC](https://devforum.okta.com/t/password-expired-but-change-password-not-allowed-on-specified-user/13973/2 "2021-04-28T18:38:24Z")

</div>

The issue was the user matched a custom password policy rule that did not have any of the self-management options checked:

 ![Screen Shot 2021-04-28 at 2.13.34 PM](https://global.discourse-cdn.com/oktadev/original/2X/d/d6560d0d3a3c7fd98f127dcc08da3de980edb9c2.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [April 29, 2021, 6:38pm UTC](https://devforum.okta.com/t/password-expired-but-change-password-not-allowed-on-specified-user/13973/3 "2021-04-29T18:38:50Z")

</div>

Closed on April 29, 2021, 6:38pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
