# Change password of a user since Vision Client

**URL:** <https://forum.inductiveautomation.com/t/change-password-of-a-user-since-vision-client/105729>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [April 30, 2025, 1:49pm UTC](https://forum.inductiveautomation.com/t/change-password-of-a-user-since-vision-client/105729 "2025-04-30T13:49:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [April 30, 2025, 1:49pm UTC](https://forum.inductiveautomation.com/t/change-password-of-a-user-since-vision-client/105729/1 "2025-04-30T13:49:28Z")

</div>

Hi, is there any form to change the password with my actual password in vision client?  
Something like this ?

```python
userSource = "default"  
username = system.security.getUsername()
oldPassword = event.source.parent.getComponent("txtOldPassword").text
newPassword = event.source.parent.getComponent("txtNewPassword").text

try:
    system.user.changePassword(userSource, username, oldPassword, newPassword)
    system.gui.messageBox("Contraseña cambiada exitosamente.")
except Exception as e:
    system.gui.errorBox("Error al cambiar la contraseña: " + str(e))

```

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [April 30, 2025, 2:38pm UTC](https://forum.inductiveautomation.com/t/change-password-of-a-user-since-vision-client/105729/2 "2025-04-30T14:38:38Z")

</div>

You might be looking for [system.user.editUser()](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-user/system-user-editUser). The [User object](https://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.12/com/inductiveautomation/ignition/common/user/User.html) it takes has a password property that can be changed.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [May 1, 2025, 5:34pm UTC](https://forum.inductiveautomation.com/t/change-password-of-a-user-since-vision-client/105729/3 "2025-05-01T17:34:05Z")

</div>

Personally, I would just use the built-in user management.

1. Put it on it's own window.
2. Force user log out when the window first opens.
3. Require user to be logged in with permissions to change user credentials.
4. Use an inactivity script on the window to log the user out.
5. Force user log out when the window is closed.

Essentially splitting the "old password" and "new password" into two processes.
