Search code examples
microsoft-graph-apimicrosoft-graph-calendar

Office365 Graph API: Fetch Calendar Share Permissions


I'm trying to extract the share permissions for a Calendar through Microsoft Graph (or even the old Outlook REST API) but it seems that there is no Graph endpoint to get a calendar's sharing permissions.

When fetching a calendar's details, the closest I found was isShared on the Calendar resource - but that doesn't give me the full data I see from the Web UI:

Calendar's sharing permissions

Basically, trying to receive the equivalent of Google Calendar's ACL list.

Am I missing anything?


Solution

  • Maybe this works for you: https://learn.microsoft.com/en-us/graph/api/calendar-list-calendarpermissions?view=graph-rest-1.0

    It's limited to accounts with some administrative rights though.
    If you query the permissions with a "normal" user's account, you just get a method not supported error message instead.

    Which is how I found that one, as I was trying to make my app aware, whenever or not it has the permissions to create and delete it's own events in a shared calendar.
    But the Endpoint refuses to respond to normal users, so it's completely useless to my use case.

    But maybe it works in yours. Should you still need it, 3 years since asking...
    I'm more leaving this for others who might run into this.