# Schedule functions (and validateUser function issue)

**URL:** <https://forum.inductiveautomation.com/t/schedule-functions-and-validateuser-function-issue/6586>\
**Category:** Ignition\
**Created:** [May 26, 2013, 4:19am UTC](https://forum.inductiveautomation.com/t/schedule-functions-and-validateuser-function-issue/6586 "2013-05-26T04:19:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdibenedetto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdibenedetto/32/6364_2.png) [@pdibenedetto](https://forum.inductiveautomation.com/u/pdibenedetto)\
**Post date:** [May 26, 2013, 4:19am UTC](https://forum.inductiveautomation.com/t/schedule-functions-and-validateuser-function-issue/6586/1 "2013-05-26T04:19:20Z")

</div>

If the option Schedule Restricted is set , system.security.validateUser return false in the case that the user’s schedule is not active.

I think this may be OK (users are only able to log in when their assigned schedule is active), but may be better that instead a boolean, return why the validate is false (wrong username, wrong password or schedule not active).

Or better, make scripting functions that setting a username as argument, return if schedule is active or not. Or passing a username and a date range, returns info (maybe a dataset, that also can be used in a calendar component)

All the scripting functions that make posible to use schedule info for customizing, will be welcome. Thanks.

(using 7.6.0)
