# Modifying Users Across Central and Remote Gateways

**URL:** <https://forum.inductiveautomation.com/t/modifying-users-across-central-and-remote-gateways/74846>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [June 9, 2023, 4:27pm UTC](https://forum.inductiveautomation.com/t/modifying-users-across-central-and-remote-gateways/74846 "2023-06-09T16:27:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asjal\_Ahmad1](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@Asjal\_Ahmad1](https://forum.inductiveautomation.com/u/Asjal_Ahmad1)\
**Post date:** [June 9, 2023, 4:27pm UTC](https://forum.inductiveautomation.com/t/modifying-users-across-central-and-remote-gateways/74846/1 "2023-06-09T16:27:53Z")

</div>

I need assistance with modifying users in a setup that includes a central cloud gateway and remote gateways. My goal is to create a script on the central gateway that can add, delete, or edit users on all the remote gateways' Internal User Source simultaneously.

During my research, I came across the system.util.sendMessage function, which seems promising for this task. However, I'm unsure about the setup process and how to effectively use this function in my network configuration.

Any insights or code examples would be appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![Asjal\_Ahmad1](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@Asjal\_Ahmad1](https://forum.inductiveautomation.com/u/Asjal_Ahmad1)\
**Post date:** [June 12, 2023, 1:19pm UTC](https://forum.inductiveautomation.com/t/modifying-users-across-central-and-remote-gateways/74846/2 "2023-06-12T13:19:45Z")

</div>

Any help would be appreciated!

---

<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:** [June 12, 2023, 1:37pm UTC](https://forum.inductiveautomation.com/t/modifying-users-across-central-and-remote-gateways/74846/3 "2023-06-12T13:37:54Z")

</div>

Well, you've found the answer. (Though I'd use the companion `system.util.sendRequest()` for most cases.) You just have to write the code to execute your desires. 🤷‍♂️

---

<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:** [June 12, 2023, 4:40pm UTC](https://forum.inductiveautomation.com/t/modifying-users-across-central-and-remote-gateways/74846/4 "2023-06-12T16:40:03Z")

</div>

Centralized access control sounds a lot like a DB user source, instead of an 'internal' one. If network failovers are deemed to make that unacceptable...what's your plan for synchronization of internal user sources after network outages? No free lunch here.

---

<div class="post-metadata">

**Author:** ![Asjal\_Ahmad1](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@Asjal\_Ahmad1](https://forum.inductiveautomation.com/u/Asjal_Ahmad1)\
**Post date:** [June 12, 2023, 6:07pm UTC](https://forum.inductiveautomation.com/t/modifying-users-across-central-and-remote-gateways/74846/5 "2023-06-12T18:07:07Z")

</div>

Well, there is a cloud db user source. But the internal default user source acts as a fallback incase the remote gateway cannot reach the cloud db. They do not need to be synchronized.
