Search code examples
calendarmicrosoft-graph-apioffice365microsoft-graph-calendar

How to list events on Outlook group calendar


In my Outlook client, I have access to a Group Calendar, "XYZ Cloud". Through Outlook, I can create, edit and delete events on this calendar.

When I use the Microsoft Graph Explorer and query /me/calendars, the Group Calendar is not returned. I would expect to see the Group Calendar.

I've navigated to the "Modify Permissions" tab in the Graph Explorer and granted Calendars.ReadWrite, Calendars.ReadShared and Calendars.Read.

Questions:

  1. How can I get the ID of a specific Group Calendar to which I already have access?
  2. How can I retrieve a list of events on that Group Calendar?

Solution

  • agree with user2250152, and pls make sure you already add correct api permission -- Group.Read.All, Group.ReadWrite.All:

    enter image description here

    related document:https://learn.microsoft.com/en-us/graph/api/calendar-list-events?view=graph-rest-1.0&tabs=http#permissions