1. Knowledge Base
  2. Data View Toolset (SPFx)

How to add User's Shared Calendar or a Group Calendar using Graph API

Please follow this article if you would like to add User's Shared Calendar or a Group Calendar using Graph API

User's shared calendar:

1. Request your colleagues to adjust the sharing permissions for their Outlook calendar shared with you, allowing you to view all details of the events on the calendar.
2. Once the calendar sharing is in place, navigate to Calendar Plus configuration.
3. In the "Data source type" field choose "Graph API" from the drop down menu.
4. Click on "Load graphs examples" and choose "User's shared calendar" from the drop down menu.
4. In the "Graph path" field  change the [user_email] with the user's email who shared the calendar with you.
/users/[user_email]/calendar/calendarView?startDateTime=[start]&endDateTime=[end]
For example: /users/inga@kwizcom.com/calendar/calendarView?startDateTime=[start]&endDateTime=[end]
 

Group calendar:

1. Navigate to Calendar Plus configuration.
2. In the "Data source type" field choose "Graph API" from the drop down menu.
3. Click on "Load graphs examples" and choose "Grope Calendar" from the drop down menu.
4. In the "Graph Path" field change the [group_id] with your Group id.
/groups/[group_id]/calendar/calendarView?startDateTime=[start]&endDateTime=[end]
 
* If you don't know your group id, you can check it by using Microsoft Graph Explorer