# Write Synchronous from web dev

**URL:** <https://forum.inductiveautomation.com/t/write-synchronous-from-web-dev/15678>\
**Category:** Ignition\
**Created:** [October 16, 2017, 1:59pm UTC](https://forum.inductiveautomation.com/t/write-synchronous-from-web-dev/15678 "2017-10-16T13:59:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [October 16, 2017, 1:59pm UTC](https://forum.inductiveautomation.com/t/write-synchronous-from-web-dev/15678/1 "2017-10-16T13:59:55Z")

</div>

I’m trying to use the wriiteSynchronous function from a web dev script, however I get the following error:

ValueError(‘Error writing to tag “Tag Name”: Access Denied’)

I assume that I need to somehow give the script the correct permissions, but I’m not exactly clear on how to achieve that.

Any help is appreciated.

Thanks,

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [October 16, 2017, 2:13pm UTC](https://forum.inductiveautomation.com/t/write-synchronous-from-web-dev/15678/2 "2017-10-16T14:13:14Z")

</div>

Check the tag to make sure access rights are set to “Read/Write” and check the permissions section of the tag.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [October 16, 2017, 2:24pm UTC](https://forum.inductiveautomation.com/t/write-synchronous-from-web-dev/15678/3 "2017-10-16T14:24:03Z")

</div>

Access rights are set to Read/Write, and no custom permissions have been set

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [October 16, 2017, 4:23pm UTC](https://forum.inductiveautomation.com/t/write-synchronous-from-web-dev/15678/4 "2017-10-16T16:23:37Z")

</div>

So after digging into this a bit further it seems that the root of my issue is that these tags are on a remote provider. So now my question is how do I write to tags on a remote provider?

---

<div class="post-metadata">

**Author:** ![mm3](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mm3](https://forum.inductiveautomation.com/u/mm3)\
**Post date:** [October 16, 2017, 4:40pm UTC](https://forum.inductiveautomation.com/t/write-synchronous-from-web-dev/15678/5 "2017-10-16T16:40:19Z")

</div>

See the Service Security settings for the remote Gateway to allow write permissions.

[https://docs.inductiveautomation.com/display/DOC79/Security+Zones](https://docs.inductiveautomation.com/display/DOC79/Security+Zones)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [October 16, 2017, 4:52pm UTC](https://forum.inductiveautomation.com/t/write-synchronous-from-web-dev/15678/6 "2017-10-16T16:52:56Z")

</div>

Thanks for the help!
