# Show / Hide object base on User Role

**URL:** <https://forum.vtscada.com/t/show-hide-object-base-on-user-role/974>\
**Category:** General Discussions\
**Created:** [June 13, 2025, 7:53pm UTC](https://forum.vtscada.com/t/show-hide-object-base-on-user-role/974 "2025-06-13T19:53:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guevarezj](https://forum.vtscada.com/user_avatar/forum.vtscada.com/guevarezj/32/1109_2.png) [@guevarezj](https://forum.vtscada.com/u/guevarezj)\
**Post date:** [June 13, 2025, 7:53pm UTC](https://forum.vtscada.com/t/show-hide-object-base-on-user-role/974/1 "2025-06-13T19:53:02Z")

</div>

Is it possible to hide / show object base on user role,  
for example if the user has a role of “Operator” object shown otherwise object hidden.

---

<div class="post-metadata">

**Author:** ![Fernando\_Raphael](https://forum.vtscada.com/user_avatar/forum.vtscada.com/fernando_raphael/32/1056_2.png) [@Fernando\_Raphael](https://forum.vtscada.com/u/Fernando_Raphael)\
**Post date:** [June 14, 2025, 1:55pm UTC](https://forum.vtscada.com/t/show-hide-object-base-on-user-role/974/2 "2025-06-14T13:55:39Z")

</div>

yes, within the source code I change the visibility variable.  
the command "  
\SecurityManager\GetUserName()" returns the username

then I make a condition, if the username is authorized to see

this guide is very good  
[https://www.vtscada.com/wp-content/uploads/2016/09/VTScada11-2-ProgrammersGuide.pdf](https://www.vtscada.com/wp-content/uploads/2016/09/VTScada11-2-ProgrammersGuide.pdf)
