# How to determine if you have write permissions on a tag?

**URL:** <https://forum.inductiveautomation.com/t/how-to-determine-if-you-have-write-permissions-on-a-tag/52855>\
**Category:** Ignition\
**Created:** [November 9, 2021, 12:04am UTC](https://forum.inductiveautomation.com/t/how-to-determine-if-you-have-write-permissions-on-a-tag/52855 "2021-11-09T00:04:01Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [November 9, 2021, 12:04am UTC](https://forum.inductiveautomation.com/t/how-to-determine-if-you-have-write-permissions-on-a-tag/52855/1 "2021-11-09T00:04:02Z")

</div>

Disclaimer: I haven’t looked into this at all… a colleague just asked.

How can you determine if the current user has write access to a tag that has security permission defined on it?

He wants to display to the user that a component cannot be used if they don’t have write permissions to the tag it’s displaying.

---

<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:** [November 9, 2021, 12:34am UTC](https://forum.inductiveautomation.com/t/how-to-determine-if-you-have-write-permissions-on-a-tag/52855/2 "2021-11-09T00:34:54Z")

</div>

Nevermind, he found it. Tag property “canWrite”

PS. this was only added in v8.1.8

---

<div class="post-metadata">

**Author:** ![Hugh](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@Hugh](https://forum.inductiveautomation.com/u/Hugh)\
**Post date:** [September 25, 2024, 2:01am UTC](https://forum.inductiveautomation.com/t/how-to-determine-if-you-have-write-permissions-on-a-tag/52855/3 "2024-09-25T02:01:40Z")

</div>

Is the canWrite property set at the gateway or is local to a perspective session?

If multiple sessions are open, how will this property work?  
I'm looking to use this as a graphical indicator to tell an operator if they have sufficient security level to control a tag. I'm worried if there are 2+ sessions open that this property will take the highest logged in user.

---

<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:** [September 25, 2024, 2:51am UTC](https://forum.inductiveautomation.com/t/how-to-determine-if-you-have-write-permissions-on-a-tag/52855/4 "2024-09-25T02:51:49Z")

</div>

CanWrite is session-based.

E.g. if a session has a user logged in with the "Engineer" role and the tag's write permissions require the "Engineer" role, then the user in that session will have access. If another session has a user logged in without that role, they won't have write access to that tag.
