# "You are not authorized to edit the default user source" from Script Console

**URL:** <https://forum.inductiveautomation.com/t/you-are-not-authorized-to-edit-the-default-user-source-from-script-console/27428>\
**Category:** Ignition Early Access\
**Created:** [August 14, 2019, 2:10pm UTC](https://forum.inductiveautomation.com/t/you-are-not-authorized-to-edit-the-default-user-source-from-script-console/27428 "2019-08-14T14:10:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![md.szyman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md.szyman/32/9240_2.png) [@md.szyman](https://forum.inductiveautomation.com/u/md.szyman)\
**Post date:** [August 14, 2019, 2:10pm UTC](https://forum.inductiveautomation.com/t/you-are-not-authorized-to-edit-the-default-user-source-from-script-console/27428/1 "2019-08-14T14:10:47Z")

</div>

I'm testing out some user management scripting and upon calling `system.user.editUser` I get an error in the script console:

> com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: You are not authorized to modify the Gateway system user source

I would expect to be able to modify the user source, since I can do so via scripts applied to components in the designer.

---

<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:** [August 14, 2019, 2:33pm UTC](https://forum.inductiveautomation.com/t/you-are-not-authorized-to-edit-the-default-user-source-from-script-console/27428/2 "2019-08-14T14:33:20Z")

</div>

> [@md.szyman](#):
>
> since I can do so via scripts applied to components in the designer.

The same scripting function? All the `system.user` functions should be going through the same code path, which is rejecting your edit to the gateway user source because the [Allow User Admin](https://docs.inductiveautomation.com/display/DOC79/Gateway+Setup#GatewaySetup-GatewaySettings) setting is being read as false.

---

<div class="post-metadata">

**Author:** ![md.szyman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md.szyman/32/9240_2.png) [@md.szyman](https://forum.inductiveautomation.com/u/md.szyman)\
**Post date:** [August 14, 2019, 2:40pm UTC](https://forum.inductiveautomation.com/t/you-are-not-authorized-to-edit-the-default-user-source-from-script-console/27428/3 "2019-08-14T14:40:20Z")

</div>

Interesting. I was able to make changes in the designer and client with the scripting functions when Allow User Admin was off, but the scripting console was rejecting the changes.

After enabling Allow User Admin, the scripting console is working too.
