# Script function to check if a user password has expired

**URL:** <https://forum.inductiveautomation.com/t/script-function-to-check-if-a-user-password-has-expired/28278>\
**Category:** Ignition Early Access\
**Created:** [September 16, 2019, 9:25am UTC](https://forum.inductiveautomation.com/t/script-function-to-check-if-a-user-password-has-expired/28278 "2019-09-16T09:25:45Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 8, 2021, 9:32pm UTC](https://forum.inductiveautomation.com/t/script-function-to-check-if-a-user-password-has-expired/28278/9 "2021-09-08T21:32:31Z")

</div>

The `InternalUserRecord` class has a `com.inductiveautomation.ignition.gateway.authentication.records.InternalUserRecord#PasswordDate` field. You would compare that against the max age set on the user source.

---

_[View the full topic](https://forum.inductiveautomation.com/t/script-function-to-check-if-a-user-password-has-expired/28278)._
