# Read Window Security Script

**URL:** <https://forum.inductiveautomation.com/t/read-window-security-script/5433>\
**Category:** Ignition\
**Created:** [November 15, 2012, 9:56pm UTC](https://forum.inductiveautomation.com/t/read-window-security-script/5433 "2012-11-15T21:56:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![think3](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@think3](https://forum.inductiveautomation.com/u/think3)\
**Post date:** [November 15, 2012, 9:56pm UTC](https://forum.inductiveautomation.com/t/read-window-security-script/5433/1 "2012-11-15T21:56:14Z")

</div>

Hi

I am wanting to write a script that will parse through all available windows and determine their security settings, so I can ultimately generate a “customized” menu of available windows for a user when they log in. The window security settings would be compared to the users roles and if that window is available to them, it would show up on their menu. Obviously, at script execution time, the windows will not be open.

I have determined that I can get all windows names with the `system.gui.getWindowNames()` function. I have also determined I can get the users roles with the `system.security.getRoles()` function. Given the name of the windows, is it then possible to extract its required security roles so I can compare this with the users roles? Or is there a better way to achieve what I am trying to do?

Regards  
James

---

<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 15, 2012, 10:17pm UTC](https://forum.inductiveautomation.com/t/read-window-security-script/5433/2 "2012-11-15T22:17:01Z")

</div>

There is no way to extract the security configured on a window to find out which roles will have access. I know it is a lot of work but I typically will store which windows a user has access to in a database table. Once you have that you can query the table to get the list of windows they have access to.

---

<div class="post-metadata">

**Author:** ![dabouse](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@dabouse](https://forum.inductiveautomation.com/u/dabouse)\
**Post date:** [March 27, 2019, 2:29pm UTC](https://forum.inductiveautomation.com/t/read-window-security-script/5433/3 "2019-03-27T14:29:56Z")

</div>

Are there now (2019) a way to Read Window Security Script with ignition 7.10 ?

Regards  
Damien
