Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get user's Office 365 default timezone fom Micosoft Graph Api?

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?

like image 814
Masayuki Avatar asked Feb 06 '23 09:02

Masayuki


2 Answers

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.

like image 180
Masayuki Avatar answered Apr 09 '23 13:04

Masayuki


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

like image 31
Marvin Dickhaus Avatar answered Apr 09 '23 13:04

Marvin Dickhaus