# List of components with security

**URL:** <https://forum.inductiveautomation.com/t/list-of-components-with-security/35887>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 22, 2020, 7:26pm UTC](https://forum.inductiveautomation.com/t/list-of-components-with-security/35887 "2020-06-22T19:26:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [June 22, 2020, 7:26pm UTC](https://forum.inductiveautomation.com/t/list-of-components-with-security/35887/1 "2020-06-22T19:26:08Z")

</div>

I’m pretty sure I know the answer, just hoping I’m wrong, is there anyway to search for components using security roles? A customer wants a list, I know I can open each window and look, was hoping to be lazy on this one.

A secondary question, what is best practice for using security so it’s easy for the operator to know what “level” is required? I was thinking about maybe an overlay or tooltip that showed the required role. Just curious what others do.

Using vision by the way.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [June 22, 2020, 8:31pm UTC](https://forum.inductiveautomation.com/t/list-of-components-with-security/35887/2 "2020-06-22T20:31:05Z")

</div>

Did not realize that I could search (Find/Replace) for each role. This will work.

But, would still like to hear from others on how they “define” the required role for a component, whether it be a button, dropdown, etc.

---

<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:** [June 22, 2020, 11:30pm UTC](https://forum.inductiveautomation.com/t/list-of-components-with-security/35887/3 "2020-06-22T23:30:32Z")

</div>

I don’t tend to use the security tab to provide security to my components, as you can’t control how they display. I use bindings on the enabled properties set to `hasRole('x')`.  
I usually also display an icon on the component that identifies that the component is disabled due to user privilege with a tooltip.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [June 23, 2020, 12:25am UTC](https://forum.inductiveautomation.com/t/list-of-components-with-security/35887/4 "2020-06-23T00:25:15Z")

</div>

Hey thanks for the tips. Much appreciated.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [June 26, 2020, 3:12am UTC](https://forum.inductiveautomation.com/t/list-of-components-with-security/35887/5 "2020-06-26T03:12:29Z")

</div>

I started looking into this tonight. What I liked about using security is I could easily set security on a container. How would you use hasRole(‘x’) on a container, since the enable property doesn’t exist or isn’t exposed?

---

<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:** [June 26, 2020, 10:53pm UTC](https://forum.inductiveautomation.com/t/list-of-components-with-security/35887/6 "2020-06-26T22:53:15Z")

</div>

You can’t, you would need to use security if you want to disable a whole container.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [July 13, 2020, 11:55pm UTC](https://forum.inductiveautomation.com/t/list-of-components-with-security/35887/7 "2020-07-13T23:55:31Z")

</div>

Thanks Nick, I took your advice and made an icon to display the component is locked out and what level is required, by mouseover and single letter. I will still use security though, too easy and pros out-weigh cons.

![Eng](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1ceeb67354c898cff0aef28f893c26adf07aa105.png) ![Sup](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/4/c46eb791aae43ec5202cfaf67bd2ab30a10458a3.png)
