# Check password policy on internal user source

**URL:** <https://forum.inductiveautomation.com/t/check-password-policy-on-internal-user-source/109200>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [July 31, 2025, 1:21pm UTC](https://forum.inductiveautomation.com/t/check-password-policy-on-internal-user-source/109200 "2025-07-31T13:21:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![e.cutino](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@e.cutino](https://forum.inductiveautomation.com/u/e.cutino)\
**Post date:** [July 31, 2025, 1:21pm UTC](https://forum.inductiveautomation.com/t/check-password-policy-on-internal-user-source/109200/1 "2025-07-31T13:21:25Z")

</div>

I need to leverage/use an internal user source.

Into the extension function "onSaveUser" of User Management component, I need to check if the password respects (or not) the password policy (lenght, complexity... as per gateway rules).

My "final" need is to insert (or not) an audit entry whenever a user is added (admin) or a password is changed (admin and single).

So I need to check if the password is compliant with "policy" and, if not, to reject the save. The same both for a new added user or an updated one.

Is there a way with an internal user source? (I know, with an external user source it is possible)

Thx
