# Component hiding using isAuthorized()

**URL:** <https://forum.inductiveautomation.com/t/component-hiding-using-isauthorized/60041>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [May 25, 2022, 10:00pm UTC](https://forum.inductiveautomation.com/t/component-hiding-using-isauthorized/60041 "2022-05-25T22:00:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![israel.jordan](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@israel.jordan](https://forum.inductiveautomation.com/u/israel.jordan)\
**Post date:** [May 25, 2022, 10:00pm UTC](https://forum.inductiveautomation.com/t/component-hiding-using-isauthorized/60041/1 "2022-05-25T22:00:29Z")

</div>

Hello All,

I have a Perspective project with a button that I am trying to make visible only when the correct user is logged in. I have a "Sign On" button on the same view that has an "Onclick" Authentication Challenge. On the button that I would like to be visible, I have a binding to the Visible property. In it's expression, I am using

> isAuthorized(false, 'Authenticated/Roles/MyConfiguredRole')

I have added the role to my profile, so I was expecting the visibility to be set to true after clicking the Sign On button. But it remains false. Can someone help me out as to where I am going wrong please?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 25, 2022, 10:30pm UTC](https://forum.inductiveautomation.com/t/component-hiding-using-isauthorized/60041/2 "2022-05-25T22:30:57Z")

</div>

Security Level is not the same thing as Role. `isAuthorized` is looking at Security Levels, but you are providing a Role.
