Reputation: 4870
Using the Graph API we are already successfully retrieving calendar views for a user's calendar (on behalf of the user). Now users would also like to be able to retrieve room calendars. So I tried the following:
https://graph.microsoft.com/beta/users/[email protected]/calendarView
https://graph.microsoft.com/v1.0/users/[email protected]/calendarView
https://graph.microsoft.com/beta/users/[email protected]/events
https://graph.microsoft.com/v1.0/users/[email protected]/events
Unfortunately all of them return a ErrorServiceUnavailable
error.
App permissions and OAuth2 scopes are set to: openid email profile offline_access https://graph.microsoft.com/Calendars.Read https://graph.microsoft.com/Calendars.Read.Shared https://graph.microsoft.com/User.Read https://graph.microsoft.com/User.ReadBasic.All https://graph.microsoft.com/User.Read.All
, so that should not be an issue.
Am I doing something wrong or is this simply not supported?
Upvotes: 1
Views: 689
Reputation: 1874
Am I doing something wrong or is this simply not supported?
For your current question: Obviously you did wrong or the Service - side temporary exception. The api is supported.
You should provide the code you have used, and based on the code, we can check what is wrong on your side.
Upvotes: 0
Reputation: 36
https://graph.microsoft.com/v1.0/users/[email protected]/calendarView is the approach I've used successfully. I had an issue with permissions and gave my app every permission in Azure, and it worked for me. I can't help with which specific permissions it is, but for testing this is how I resolved an issue I had.
Upvotes: 2