# How to access access User & roles \<Locked out enable, lockout window and user Inactivity time from script in view

**URL:** <https://forum.inductiveautomation.com/t/how-to-access-access-user-roles-locked-out-enable-lockout-window-and-user-inactivity-time-from-script-in-view/89889>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 3, 2024, 1:32pm UTC](https://forum.inductiveautomation.com/t/how-to-access-access-user-roles-locked-out-enable-lockout-window-and-user-inactivity-time-from-script-in-view/89889 "2024-05-03T13:32:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarun\_kapure](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@tarun\_kapure](https://forum.inductiveautomation.com/u/tarun_kapure)\
**Post date:** [May 3, 2024, 1:32pm UTC](https://forum.inductiveautomation.com/t/how-to-access-access-user-roles-locked-out-enable-lockout-window-and-user-inactivity-time-from-script-in-view/89889/1 "2024-05-03T13:32:11Z")

</div>

Hi, i have created a separate view for user and roles.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b701f87cb08156803cfc9fd048df2f9269131c2a.png)

in that view I have to access User & roles \<Locked out enable, lockout window in gateway with the help of script in my view.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f0e48e82bdf943bb0de544e807d56a28d9a997a2.jpeg)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/a/4a8a5c329e532cf102589fbac77e5cbc704ed803.jpeg)  
how to do that can any one suggest.
