Masayuki
Masayuki

Reputation: 189

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?

Upvotes: 5

Views: 3694

Answers (2)

Marvin Dickhaus
Marvin Dickhaus

Reputation: 805

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

Upvotes: 3

Masayuki
Masayuki

Reputation: 189

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.

Upvotes: 7

Related Questions