# User Managment Auditing

**URL:** <https://forum.inductiveautomation.com/t/user-managment-auditing/16186>\
**Category:** Ignition\
**Created:** [December 1, 2017, 1:07am UTC](https://forum.inductiveautomation.com/t/user-managment-auditing/16186 "2017-12-01T01:07:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordanv](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jordanv](https://forum.inductiveautomation.com/u/jordanv)\
**Post date:** [December 1, 2017, 1:07am UTC](https://forum.inductiveautomation.com/t/user-managment-auditing/16186/1 "2017-12-01T01:07:31Z")

</div>

I would like to add information into the audit table when users are edited or added. Under the onSaveUser extension function on the User Management component is there a way to compare the new values to the old ones? The only way I have found is to do something like this to see the differences

```auto
old = system.user.getUser('default', user.get('username')).getContactInfo()
new = user.getContactInfo()

```

Is this a reliable way to do it or is there a better way?
