How to get day wise working hours using Graph API?

sk15 10 Reputation points
2023-05-25T08:08:14.3966667+00:00

I am using Graph API to get the schedule of a user. Using the following endpoint:

https://graph.microsoft.com/v1.0/me/calendar/getschedule

However this returns a single value for the working hours for the user. While it is possible to set working hours on a day-wise basis in outlook. Here is the response from the above API call:

getSchedule

My outlook settings:

OutlookWorkHours

The API is returning the earliest start time value and last end time value defined across the week in the Outlook settings.

Is there a way to get the day-wise working hours using Graph API?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,539 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. msft-gu 1,275 Reputation points
    2023-05-30T21:18:41.7766667+00:00

    Hi sk15,

    As far as I read on the documentation, this is not possible since the output or the response of the endpoint does not consist of any wise working hours.

    If you need this to be added, I highly suggest providing feedback at Microsoft Graph Community Feature request.

    I answered your question, please upvote it and accept it as answer. Have a great day ahead!

    Reference: https://learn.microsoft.com/en-us/graph/api/calendar-getschedule?view=graph-rest-1.0&tabs=http