# How can I read when an schedule is active

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-read-when-an-schedule-is-active/58306>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [April 11, 2022, 3:44pm UTC](https://forum.inductiveautomation.com/t/how-can-i-read-when-an-schedule-is-active/58306 "2022-04-11T15:44:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![splata](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@splata](https://forum.inductiveautomation.com/u/splata)\
**Post date:** [April 11, 2022, 3:44pm UTC](https://forum.inductiveautomation.com/t/how-can-i-read-when-an-schedule-is-active/58306/1 "2022-04-11T15:44:27Z")

</div>

hello.

is there a way to read this through an script ?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/e/6e251d8f66283de616f478eca14b428207df0507.png)

---

<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:** [April 11, 2022, 4:47pm UTC](https://forum.inductiveautomation.com/t/how-can-i-read-when-an-schedule-is-active/58306/2 "2022-04-11T16:47:44Z")

</div>

Possibly:  
[https://docs.inductiveautomation.com/display/DOC81/system.user.isUserScheduled](https://docs.inductiveautomation.com/display/DOC81/system.user.isUserScheduled)

Depends on exactly what you’re trying to do.

---

<div class="post-metadata">

**Author:** ![splata](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@splata](https://forum.inductiveautomation.com/u/splata)\
**Post date:** [April 12, 2022, 4:21am UTC](https://forum.inductiveautomation.com/t/how-can-i-read-when-an-schedule-is-active/58306/4 "2022-04-12T04:21:37Z")

</div>

if I create a dummy user scheduled and i´m ask for the schedule of this user i can get the info desired.

`user ` `=` `system.user.getUser("` `", "` `oper1")`

`if` `system.user.isUserScheduled(user):`

` ` `print` `"oper1 is scheduled"`

`else` `:`

` ` `print` `"oper1 is not scheduled"`
