# How detect when new user is created in Ignition

**URL:** <https://forum.inductiveautomation.com/t/how-detect-when-new-user-is-created-in-ignition/80402>\
**Category:** Ignition\
**Created:** [October 12, 2023, 5:47pm UTC](https://forum.inductiveautomation.com/t/how-detect-when-new-user-is-created-in-ignition/80402 "2023-10-12T17:47:22Z")\
**Posts on this page:** 4\
**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:** [October 12, 2023, 5:47pm UTC](https://forum.inductiveautomation.com/t/how-detect-when-new-user-is-created-in-ignition/80402/1 "2023-10-12T17:47:22Z")

</div>

Hi

I want to have an event when anyone, creates a new user on a specific Usersource from the Web Page config in Ignition. Is there any way to detect it?

If not how can I poll Ignition resources (for example every minute) to see if any new user added?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [October 12, 2023, 5:53pm UTC](https://forum.inductiveautomation.com/t/how-detect-when-new-user-is-created-in-ignition/80402/2 "2023-10-12T17:53:50Z")

</div>

You can run [system.user.getUsers - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.user.getUsers) in some gateway timer script to get the full list of users for a given data source. You'd probably need a database table or memory dataset tag to record what the last records were so you can detect differences.

~~I don't know that the order `system.user.getUsers` is deterministic, but if it is, or if you could write it inside a list comprehension that ordered it in a function, you could probably get away with putting a `runScript` in a memory dataset tag calling a function returning the users in a determined order, and then do a tag change event on that tag - it should only run if a user was added or subtracted.~~

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 12, 2023, 6:08pm UTC](https://forum.inductiveautomation.com/t/how-detect-when-new-user-is-created-in-ignition/80402/3 "2023-10-12T18:08:34Z")

</div>

> [@bkarabinchak.psi](#):
>
> it should only run if a user was added or subtracted.

No, constructed datasets are always new values, even if the content is the same. You''ll get a change event every time.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [October 12, 2023, 6:10pm UTC](https://forum.inductiveautomation.com/t/how-detect-when-new-user-is-created-in-ignition/80402/4 "2023-10-12T18:10:27Z")

</div>

Right, I messed that up. Ignore my second suggestion, first one should be viable still.
