# Getting a users schedule

**URL:** <https://forum.inductiveautomation.com/t/getting-a-users-schedule/33148>\
**Category:** Ignition\
**Created:** [March 17, 2020, 12:27am UTC](https://forum.inductiveautomation.com/t/getting-a-users-schedule/33148 "2020-03-17T00:27:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasoncoope](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jasoncoope/32/18674_2.png) [@jasoncoope](https://forum.inductiveautomation.com/u/jasoncoope)\
**Post date:** [March 17, 2020, 12:27am UTC](https://forum.inductiveautomation.com/t/getting-a-users-schedule/33148/1 "2020-03-17T00:27:04Z")

</div>

I’ve been tasked with creating a calendar view of who is scheduled to be working at what time on a week view calendar. Simple I thought, Add users to schedules and provide a mechanism for a supervisor to mark a schedule modification when that person is on vacation.

As I go through the system.user functions, I can’t find a method that will return a list of schedule entries for a user.

i.e. system.user.getUsersSchedule(user) which would return a list of schedule objects including schedule modifications which I would then iterate through to mark on a calendar when that person is schedule to be working.

Is there something that is available to do this?

---

<div class="post-metadata">

**Author:** ![pascal](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pascal](https://forum.inductiveautomation.com/u/pascal)\
**Post date:** [March 17, 2020, 9:48am UTC](https://forum.inductiveautomation.com/t/getting-a-users-schedule/33148/3 "2020-03-17T09:48:16Z")

</div>

Hi, check out this function :  
[https://docs.inductiveautomation.com/display/DOC79/system.user.getUser](https://docs.inductiveautomation.com/display/DOC79/system.user.getUser)

As described in the documentation, you should be able to access the schedules for any username using `user.get(` `'schedules'` `)`

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [March 17, 2020, 9:56am UTC](https://forum.inductiveautomation.com/t/getting-a-users-schedule/33148/4 "2020-03-17T09:56:19Z")

</div>

To add to above, once you have your schedule object you can run a bunch of methods (i.e. .isTuesday() or .isAllDays(), .getAllDayTime() or whatever you need) on that to get the times for each day, then do:

> schedModifications = user.getScheduleAdjustments()

to get an array of any changes you need to account for.

---

<div class="post-metadata">

**Author:** ![jasoncoope](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jasoncoope/32/18674_2.png) [@jasoncoope](https://forum.inductiveautomation.com/u/jasoncoope)\
**Post date:** [March 17, 2020, 3:57pm UTC](https://forum.inductiveautomation.com/t/getting-a-users-schedule/33148/5 "2020-03-17T15:57:38Z")

</div>

Brilliant! Thank you both.
