# Switch User Popup based on time

**URL:** <https://forum.inductiveautomation.com/t/switch-user-popup-based-on-time/69412>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [February 3, 2023, 4:03pm UTC](https://forum.inductiveautomation.com/t/switch-user-popup-based-on-time/69412 "2023-02-03T16:03:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 3, 2023, 4:50pm UTC](https://forum.inductiveautomation.com/t/switch-user-popup-based-on-time/69412/4 "2023-02-03T16:50:20Z")

</div>

Lots of ideas in this thread:

> [@Modal Pop-Up How-To?](https://forum.inductiveautomation.com/t/modal-pop-up-how-to/15211/10):
>
> Alright, who is ready for some hacking? This might get complicated, but here is how I have achieved this in the past. As an example, I will use my custom lock screen, attached in this post. Here is the script. def lockScreen(): from javax.swing import SwingUtilities,JFrame #Import some stuff import system.nav if system.util.getGlobals().has\_key('lockScreen'): #Check if the screen has been locked before. This really just saves the set up code system.util.getGlobals()["app"].getRootPane…

My _personal_ answer would be to tell the customer that `system.security.lockScreen` is the only way to do it. The lockscreen window looks almost identical to that popup, and this is a fairly ridiculous thing to split hairs over. But I'll leave that up to you 🙂

---

_[View the full topic](https://forum.inductiveautomation.com/t/switch-user-popup-based-on-time/69412)._
