# Component Visibility based on User Login

**URL:** <https://forum.inductiveautomation.com/t/component-visibility-based-on-user-login/2370>\
**Category:** Ignition\
**Created:** [November 29, 2010, 2:28am UTC](https://forum.inductiveautomation.com/t/component-visibility-based-on-user-login/2370 "2010-11-29T02:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rooks](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@rooks](https://forum.inductiveautomation.com/u/rooks)\
**Post date:** [November 29, 2010, 2:28am UTC](https://forum.inductiveautomation.com/t/component-visibility-based-on-user-login/2370/1 "2010-11-29T02:28:49Z")

</div>

I am trying to make a seperate Navigation Tab that is visible only when an administrator is logged in. Any suggestions?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [November 29, 2010, 10:29pm UTC](https://forum.inductiveautomation.com/t/component-visibility-based-on-user-login/2370/2 "2010-11-29T22:29:07Z")

</div>

Well, you can bind the visible property of the component to the following expression:`lookup({[System]Client/User/RolesDataSet}, "Administrator", "", 0, 0) = "Administrator"`That will check to see if the current user that is logged in has the Administrator role.

If you are looking to open a window on startup based on who is logged in you can have the following Global Event Startup Script (Client):`if "Administrator" in system.security.getRoles():
	system.nav.openWindow("NavigationWindow")`Hope this helps.
