# Write to UDT Instance parameter through GW network

**URL:** <https://forum.inductiveautomation.com/t/write-to-udt-instance-parameter-through-gw-network/99526>\
**Category:** Ignition\
**Created:** [December 6, 2024, 2:17pm UTC](https://forum.inductiveautomation.com/t/write-to-udt-instance-parameter-through-gw-network/99526 "2024-12-06T14:17:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andreas/32/18981_2.png) [@andreas](https://forum.inductiveautomation.com/u/andreas)\
**Post date:** [December 6, 2024, 2:17pm UTC](https://forum.inductiveautomation.com/t/write-to-udt-instance-parameter-through-gw-network/99526/1 "2024-12-06T14:17:34Z")

</div>

Hi,

We have a test environment with a standard Ignition GW and an Edge GW connected through a GW network.

When trying to write to a UDT Instance parameter on the Edge GW from the standard Gateway, we just get `[Bad_AccessDenied]`

If we write to a memory tag inside the same UDT instance it works fine, but writing to a parameter gives an error as mentioned.

```python
tagPaths = ['[tagprovider]Instance1/Parameters.Param1']
values = [69]

system.tag.writeBlocking(tagPaths, values)

```

returns

```python
[Bad_AccessDenied]

```

While

```python
tagPaths = ['[tagprovider]Instance1/Tag1']
values = [69]

system.tag.writeBlocking(tagPaths, values)

```

returns

```python
[Good]

```

UDT def:

```python
{
  "name": "TESTING",
  "parameters": {
    "Param1": {
      "dataType": "Integer",
      "value": 0
    }
  },
  "tagType": "UdtType",
  "tags": [
    {
      "valueSource": "memory",
      "name": "Tag1",
      "value": 0,
      "tagType": "AtomicTag"
    }
  ]
}

```

Using the same code to write to the instance parameter on the Edge GW itself works fine, just not through the GW network.

Something we have missed, or is it intended? Anyone? 🙂

---

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [December 7, 2024, 5:32pm UTC](https://forum.inductiveautomation.com/t/write-to-udt-instance-parameter-through-gw-network/99526/2 "2024-12-07T17:32:28Z")

</div>

Are the Security Roles/Zones for each client session the same (Edge vs Remote)?

---

<div class="post-metadata">

**Author:** ![andreas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andreas/32/18981_2.png) [@andreas](https://forum.inductiveautomation.com/u/andreas)\
**Post date:** [December 9, 2024, 7:48am UTC](https://forum.inductiveautomation.com/t/write-to-udt-instance-parameter-through-gw-network/99526/3 "2024-12-09T07:48:29Z")

</div>

Hi Chris,

Thanks for your reply.

Seems like I had to change the access level in the service security for the tag provider from "ReadWrite" to "ReadWriteEdit" to be able to write to parameters. So writing to parameters seems to fall under the "Edit" category.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/9/697c73791bf20a1df134414cd95e63b7a0c41860.png)
