# Change operator password during runtime

**URL:** <https://forum.inductiveautomation.com/t/change-operator-password-during-runtime/21267>\
**Category:** Ignition\
**Created:** [December 6, 2018, 8:44pm UTC](https://forum.inductiveautomation.com/t/change-operator-password-during-runtime/21267 "2018-12-06T20:44:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [December 6, 2018, 8:44pm UTC](https://forum.inductiveautomation.com/t/change-operator-password-during-runtime/21267/1 "2018-12-06T20:44:05Z")

</div>

Hello

In user management component there is option to change password for internal profile.  
I want this option in script so operator can change their password through HMI when they need.  
I can’t find any system.security. function for this.  
How can I do that?

---

<div class="post-metadata">

**Author:** ![schenk](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@schenk](https://forum.inductiveautomation.com/u/schenk)\
**Post date:** [December 6, 2018, 11:24pm UTC](https://forum.inductiveautomation.com/t/change-operator-password-during-runtime/21267/2 "2018-12-06T23:24:22Z")

</div>

I’m not aware of scripting functions for a password change, but is there a reason you don’t want to use the built in user management component? By setting the mode to “Edit Current” they will only have access to their account.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [December 7, 2018, 5:09am UTC](https://forum.inductiveautomation.com/t/change-operator-password-during-runtime/21267/3 "2018-12-07T05:09:34Z")

</div>

The main reason is for theme and the look.  
The project is optimize for touch screen with bigger icon and dark theme so using user management component is not suite here.

---

<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:** [December 7, 2018, 4:07pm UTC](https://forum.inductiveautomation.com/t/change-operator-password-during-runtime/21267/4 "2018-12-07T16:07:05Z")

</div>

There is no scripting function to change the password of a user in the internal database - however, what you can do is use a database user source, and then use scripting to perform the password operations desired.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [December 7, 2018, 6:29pm UTC](https://forum.inductiveautomation.com/t/change-operator-password-during-runtime/21267/5 "2018-12-07T18:29:17Z")

</div>

> [@paul-griffith](#):
>
> here is no scripting function to change the password of a user in the internal database - however, what you can do is use a database user source, and

Thanks. Is there any really project sketeron to work with?

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [December 14, 2018, 7:12am UTC](https://forum.inductiveautomation.com/t/change-operator-password-during-runtime/21267/6 "2018-12-14T07:12:37Z")

</div>

Exactly what we are doing. Had twerk the login system to allow users to log in with CCID enabled readers and smart cards.

However now that we have it all working, I think this will be our pattern for future projects, and I want to make a template to add/edit/delete users. I really don’t wan’t to enable legacy database access or have the SQL in named queries as I wan’t this template to be portable between our projects/gateways. Is there any way to make such a template self contained? Maybe some kind of template based permission instead of role based? Don’t want to have to give e.g. user manager role legacy database access.

Sorry for hijacking this tread, but this was just too similar.

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [June 5, 2023, 3:43pm UTC](https://forum.inductiveautomation.com/t/change-operator-password-during-runtime/21267/7 "2023-06-05T15:43:39Z")

</div>

This thread is helpful here

> [@Change user password from Perspective session](https://forum.inductiveautomation.com/t/change-user-password-from-perspective-session/42686/2):
>
> I created an example in the attached view: [view.json](https://forum.inductiveautomation.com/uploads/short-url/nw4owOU2ZBhgkmc8EGSlAvbeEgG.json) (7.1 KB) Take a look at the “Change Password” button’s onClick event script
