# Show/hide Treeview nodes based on users

**URL:** <https://forum.inductiveautomation.com/t/show-hide-treeview-nodes-based-on-users/8297>\
**Category:** Ignition\
**Created:** [April 10, 2014, 3:16pm UTC](https://forum.inductiveautomation.com/t/show-hide-treeview-nodes-based-on-users/8297 "2014-04-10T15:16:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Android](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Android](https://forum.inductiveautomation.com/u/Android)\
**Post date:** [April 10, 2014, 3:16pm UTC](https://forum.inductiveautomation.com/t/show-hide-treeview-nodes-based-on-users/8297/1 "2014-04-10T15:16:54Z")

</div>

I am trying to use the treeview navigation skeleton project.  
I have a structure that looks something like

T1  
T1a  
T1b  
T1c  
T2  
T2a  
T2b  
T3  
T3a  
T3b  
T3c  
T3d

I would like T1 (and all its sub-nodes) and/or T2 (and all its…) and/or T3 (and…) to appear based on user logins. How can I achieve that?  
thx

---

<div class="post-metadata">

**Author:** ![RRRancher](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@RRRancher](https://forum.inductiveautomation.com/u/RRRancher)\
**Post date:** [April 11, 2014, 4:10pm UTC](https://forum.inductiveautomation.com/t/show-hide-treeview-nodes-based-on-users/8297/2 "2014-04-11T16:10:55Z")

</div>

For my Treeviews, I bind SQL queries, with the security built in them, which produces the desired nodes for each user.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [April 11, 2014, 4:14pm UTC](https://forum.inductiveautomation.com/t/show-hide-treeview-nodes-based-on-users/8297/3 "2014-04-11T16:14:49Z")

</div>

We do the same thing. Our trees are completely SQL driven.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [April 12, 2014, 12:07am UTC](https://forum.inductiveautomation.com/t/show-hide-treeview-nodes-based-on-users/8297/4 "2014-04-12T00:07:33Z")

</div>

sql driven for us also.

---

<div class="post-metadata">

**Author:** ![joseut76](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@joseut76](https://forum.inductiveautomation.com/u/joseut76)\
**Post date:** [May 22, 2017, 8:55pm UTC](https://forum.inductiveautomation.com/t/show-hide-treeview-nodes-based-on-users/8297/5 "2017-05-22T20:55:42Z")

</div>

Hi I want to do something similar. Do you have some example of how can this be done?

Thanks
