Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access a shared calendar (such as a meeting room via Office 365 REST API)

I'm using the Office 365 REST api to access my account's calendars. I'd like to access all the calendars my account has access to, in particular the meeting rooms calendars appearing in the "Other calendars" section in my Office 365 interface.

For now, if I query the "https://outlook.office365.com/api/v1.0/me/calendars" endpoint, I only got the calendars I own, not the meeting rooms calendars.

Any clue on how to get them (via Office 365 REST API) ?

like image 236
Nico Avatar asked Sep 27 '22 12:09

Nico


1 Answers

The REST API doesn't support access to other user's calendars when logging in as a user. You can use the client credentials model to grant the app access to all calendars in the organization and access them that way.

like image 101
Jason Johnston Avatar answered Oct 20 '22 07:10

Jason Johnston