# Tag Structure, UDT setup, and Best Practices

**URL:** <https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [July 17, 2023, 6:03pm UTC](https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474 "2023-07-17T18:03:54Z")\
**Posts on this page:** 7\
**Page:** 2

<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:** [December 12, 2023, 11:43pm UTC](https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474/21 "2023-12-12T23:43:25Z")

</div>

> [@rpavlicek](#):
>
> Scripting or json copy/paste only?

Yes.

> [@rpavlicek](#):
>
> Any way without doing those, but still being able to have top level parameters in the top level folder structure?

No.

> [@rpavlicek](#):
>
> potential disabled wasted tags

"Disabled" is a subcode of "Bad". You will make your life miserable if you do that widely.

If you feel you need variable numbers of items in tag folders, your UI is almost certainly going to need scripts to handle it. So having corresponding scripts to configure the mess is par for the course.

There's no magic wand, Ignition's reputation to the contrary. 😄

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 13, 2023, 12:00am UTC](https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474/22 "2023-12-13T00:00:13Z")

</div>

Topic digression warning...

What I feel is lacking is the ability to easily set write permissions on tags based on security zones. For example, if all device start commands need operator role, but then you add some of these devices into a particular area folder where only operators within a security zone can write to this tag, I haven't found an acceptable solution to achieve this _simply_.  
You could:

- manually override the writePermissions on all relevant device tags within the area folder. Lots of work, especially if it's a large area. What if the base UDT definition changes its default write permission to require say the "OtherOperator" role instead? this isn't reflected
- leave the tags alone and instead apply the zone permissions at the page level. But this has a few drawbacks: It's impossible to apply this per tag and this will apply for all tags for the devices accessed from that page (e.g. device popups will have the control enable conditions passed to it which come from the page, and these include in it the security zone), and this decentralises the permissions configuration which can lead to errors in implementation.

Example:  
2x grape crusher HMIs. These should only be able to be controlled by "operator" roles logged in from the 2x HMI clients which are positioned directly in front of the machinery.  
The "maintenance" role should, however, have access to changing particular settings of devices, engineering setpoints, etc. from anywhere in case they get a call. This second maintenance requirement means that I essentially need to use the tag permissions to limit control, but this is a lot of effort to configure this on 4-5 tags for ~50 devices, plus all of the other process tags on top of that (maybe 60 tags) 😕  
Of course I can use scripting to do this but this is a bit to set up; it would be a lot simpler if we could set permissions on folder which would combine with the permissions on its sub-tags, similar to how OS file/folder security is done

---

<div class="post-metadata">

**Author:** ![Hayden\_Watson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hayden_watson/32/48792_2.png) [@Hayden\_Watson](https://forum.inductiveautomation.com/u/Hayden_Watson)\
**Post date:** [December 13, 2023, 11:54am UTC](https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474/23 "2023-12-13T11:54:37Z")

</div>

Maybe the wrong place to go, but I wish there was some security config in the tag groups. Would make something like this a lot easier to implement. I want my special motor jogging tags to only be accessible if you're next to that motor, etc.

---

<div class="post-metadata">

**Author:** ![rpavlicek](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rpavlicek/32/55868_2.png) [@rpavlicek](https://forum.inductiveautomation.com/u/rpavlicek)\
**Post date:** [December 13, 2023, 2:55pm UTC](https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474/24 "2023-12-13T14:55:58Z")

</div>

What about the ability to put parameters on folders in the main tag structure (not in UDTs) and having UDTs read from them? Maybe something to put in Ignition features and ideas?

\*Edit to add that there seems to be a similar idea posted a few years ago. Didn't get much attention, however seems like it would be of big benefit.  
[add bindable parameters to tag folders | Voters | Inductive Automation](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/add-bindable-parameters-to-tag-folders)

---

<div class="post-metadata">

**Author:** ![zbinder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zbinder/32/28918_2.png) [@zbinder](https://forum.inductiveautomation.com/u/zbinder)\
**Post date:** [December 13, 2023, 4:04pm UTC](https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474/25 "2023-12-13T16:04:28Z")

</div>

It's not quite the same as parameters, but UDTs are capable of recognizing outside tags through relative paths. I've used this to give tags awareness of what folder they're in.

---

<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:** [December 13, 2023, 4:22pm UTC](https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474/26 "2023-12-13T16:22:27Z")

</div>

> [@zbinder](#):
>
> UDTs are capable of recognizing outside tags

Only in expression tags. Binding expressions that **configure** a tag's properties only accept UDT parameters.

---

<div class="post-metadata">

**Author:** ![j.israelsen](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@j.israelsen](https://forum.inductiveautomation.com/u/j.israelsen)\
**Post date:** [December 13, 2023, 8:47pm UTC](https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474/27 "2023-12-13T20:47:22Z")

</div>

@nminchin and @Hayden_Watson, I agree with the direction you are going with tag security.

Reference the following related feature request and forum post, maybe we can get some traction on a solution:

> **[Tag Security Bindings | Ignition Features and Ideas | Inductive Automation](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/tag-security-bindings)**
>
> Would like the ability to use expressions/parameters to dynamically assign tag security settings in a similar manner the rest of the configurable tag

> [@Tag Configuration - Security Setting By Script or Parameter](https://forum.inductiveautomation.com/t/tag-configuration-security-setting-by-script-or-parameter/70192):
>
> I have a UDT/Tag. I would like to set the security settings of the UDT/Tag through a script or a parameter. Is this possible? Clarification, I don't need to dynamically change the security setting (on the fly), just to be able to set it during configuration. An example implementation would be to secure a UDT/Tag based on whether it should be limited to "Supervisor" role or an "Operator" role. The only current solutions or ideas that I have thus far are as follows: Override UDT security setti…

[Previous page](https://forum.inductiveautomation.com/t/tag-structure-udt-setup-and-best-practices/76474.md?page=1)
