5

Because some Graph API needs user's timezone, I want to get it.

Ex. Find meeting times api needs timezone settings.

Would you tell me how to get user's timezone settings from Office 365?

Masayuki
  • 169
  • 2
  • 13
  • Possible duplicate of [Calendar or user timezone with Office 365 API](https://stackoverflow.com/questions/29790029/calendar-or-user-timezone-with-office-365-api) – Fowl May 16 '19 at 05:33

2 Answers2

6

I found answer and share it to developers who have same questions.

To get user's Office 365 Timezone, you can get with Get user mailbox settings API.

Please set "Read and write to your mailbox settings" permission in Azure AD.

Masayuki
  • 169
  • 2
  • 13
  • I can only see that the timezone arrives as a string. Is the format of that string documented anywhere? – yuvalm2 Oct 15 '17 at 15:35
  • @yuvalm2 [This document](https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx) may be nice for you. – Masayuki Oct 21 '17 at 14:06
  • 1
    Link in the answer is broken. (Thanks Microsoft...) – osman Jul 14 '18 at 07:29
  • 1
    Found it, new link is this one: https://learn.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/mail-rest-operations#response-type-15 – osman Jul 14 '18 at 07:57
3

The Microsoft Graph now supports requesting the TimeZone directly using either GET /me/mailboxSettings/timeZone or GET /users/{id|userPrincipalName}/mailboxSettings/timeZone

Marvin Dickhaus
  • 785
  • 12
  • 27