question

WesleyLoo-2057 avatar image
0 Votes"
WesleyLoo-2057 asked Deva-MSFT commented

getting calendar sharing permissions for different user accounts - Graph API

Using an Microsoft 365 E5 developer account.

When using the Graph API explorer, I am able to get all calendar sharing permissions that I've set, including those that specify to share with individuals outside my organization; for this first case I use

 https://graph.microsoft.com/v1.0/me/calendar/calendarPermissions


However, when I switch to using app I have registered under Azure Active Directory, with the application permission "Calendars.Read" granted, I am only able to read a single calendar permission which was there by default, which notably has the property "isInsideOrganization": true. For this second case, I need to use:

 /users/{id}/calendar/calendarPermissions

Am I missing something that would allow me to get all the calendar permissions, including those with "isInsideOrganization": false? Or is there a difference in access allowed because these two cases show the difference between "delegated" and "application" api permissions? Is it possible to get all the calendar sharing permissions via application permissions?


microsoft-graph-calendar
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If its users calendar then you can use the Get Calendarpermissions API to use in both delegated/application permissions scenarios with the specified permissions specified in the documentation. Please note application permissions with above API call works only for users calendar and not for group calendar.


1 Vote 1 ·

0 Answers