# User Management component mode, disable name and schedule change

**URL:** <https://forum.inductiveautomation.com/t/user-management-component-mode-disable-name-and-schedule-change/33785>\
**Category:** Ignition\
**Created:** [April 8, 2020, 2:28pm UTC](https://forum.inductiveautomation.com/t/user-management-component-mode-disable-name-and-schedule-change/33785 "2020-04-08T14:28:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsui](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@dsui](https://forum.inductiveautomation.com/u/dsui)\
**Post date:** [April 8, 2020, 2:28pm UTC](https://forum.inductiveautomation.com/t/user-management-component-mode-disable-name-and-schedule-change/33785/1 "2020-04-08T14:28:40Z")

</div>

Hi, I have a project in version 8.0.10 using the User Management component on an Internal user source. I have the Mode property setup so that only the administrator level user can access the Manage Users mode, while other user levels can only access the Edit Current mode. The other users level should only be allowed to change their passwords, and not other user properties like username, First Name, and Last Name. I’ve set the component properties such as Contact info Editing Enabled and Schedule Adjustments Enabled to be admin only, however the other users can still change the other user properties besides password.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f96acace7f9b1acf11aafa26ae75d9487d01c763.png)  
Therefore, I’m wondering if there is another component property for the User Management component, or if scripting may be used. Checking some other forum topics, it seems scripting password changes with internal user sources are limited.

---

<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 8, 2020, 9:21pm UTC](https://forum.inductiveautomation.com/t/user-management-component-mode-disable-name-and-schedule-change/33785/2 "2020-04-08T21:21:51Z")

</div>

This is what the OnSaveUser extension function is for. You can’t disable the fields, but you can reject changes to them. [docs](https://docs.inductiveautomation.com/display/DOC80/Vision+-+User+Management)

---

<div class="post-metadata">

**Author:** ![dsui](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@dsui](https://forum.inductiveautomation.com/u/dsui)\
**Post date:** [April 10, 2020, 1:46pm UTC](https://forum.inductiveautomation.com/t/user-management-component-mode-disable-name-and-schedule-change/33785/3 "2020-04-10T13:46:20Z")

</div>

Thanks Kathy. Found the onSaveUser extension function. Seems that the user argument may be used, which is a PyUser class when running user.getClass(). Is there a way to track if properties such as the First Name, Last Name components changed?

---

<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 10, 2020, 2:51pm UTC](https://forum.inductiveautomation.com/t/user-management-component-mode-disable-name-and-schedule-change/33785/4 "2020-04-10T14:51:06Z")

</div>

You can use system.user.getUser() to get the user as it exists before the changes. Then compare the properties between the user from getUser and the user object you get in onSaveUser to see if there are changes you care about.
