Microsoft Graph API: Retrieve Calendar ID

Victoria Jul 07, 2026

Microsoft Graph API is a powerful tool that enables you to access the data and functionality of Microsoft 365, Windows 10, and Enterprise Mobility + Security. One of the key features it offers is the ability to manage calendars, including getting calendar IDs. In this guide, we'll delve into the process of retrieving calendar IDs using Microsoft Graph API.

Using Microsoft Graph API inside Microsoft Flow in O365
Using Microsoft Graph API inside Microsoft Flow in O365

Before we dive into the specifics, ensure you have the necessary prerequisites. You'll need to register an application in Azure Active Directory (Azure AD) and grant it the appropriate permissions. Additionally, you should have a basic understanding of how to make API requests using tools like Postman or cURL.

APIs and app development
APIs and app development

Understanding Calendars in Microsoft Graph API

In Microsoft Graph API, calendars are represented as resources. Each calendar has a unique identifier, known as the calendar ID, which is used to reference that specific calendar. Understanding this structure is crucial for managing calendars effectively.

Microsoft Graph
Microsoft Graph

Calendars can be of different types, such as primary calendars (associated with a user's mailbox) or shared calendars (accessible to multiple users). The calendar ID helps differentiate between these types and individual calendars.

Calendar IDs for Primary Calendars

Support Tip: Getting Started with Microsoft Graph API | Microsoft Community Hub
Support Tip: Getting Started with Microsoft Graph API | Microsoft Community Hub

Primary calendars are tied to a user's mailbox. The calendar ID for a primary calendar is the same as the user's ID. For example, if the user's ID is 'John Doe', the calendar ID for their primary calendar would also be 'John Doe'.

To retrieve the ID of a user's primary calendar, you can use the following API endpoint: GET https://graph.microsoft.com/v1.0/me/calendar. The response will contain the user's calendar ID in the 'id' field.

Calendar IDs for Shared Calendars

How to Use Microsoft Graph API in SPFx Web Parts
How to Use Microsoft Graph API in SPFx Web Parts

Shared calendars are calendars that multiple users can access. The calendar ID for a shared calendar is a unique identifier that starts with the prefix 'Calendar.'. For instance, a shared calendar's ID might look like this: 'Calendar.abc123defg'.

To retrieve the ID of a shared calendar, you can use the following API endpoint: GET https://graph.microsoft.com/v1.0/groups/{group_id}/calendar. Replace '{group_id}' with the ID of the group that the shared calendar is associated with. The response will contain the shared calendar's ID in the 'id' field.

Retrieving Calendar IDs for Specific Users or Groups

How to Create Year and School Calendar with Dynamic Date Markers » The Spreadsheet Page
How to Create Year and School Calendar with Dynamic Date Markers » The Spreadsheet Page

Sometimes, you might need to retrieve calendar IDs for specific users or groups. Microsoft Graph API provides several ways to achieve this.

For users, you can use the 'me' keyword to refer to the signed-in user, or specify a user's ID or email address. For groups, you can use the group's ID or display name.

How to create a shared calendar in Microsoft Teams
How to create a shared calendar in Microsoft Teams
Microsoft Outlook Personal Email and Calendar | Microsoft 365
Microsoft Outlook Personal Email and Calendar | Microsoft 365
Interactive Excel Calendar with Heatmap – Free Download
Interactive Excel Calendar with Heatmap – Free Download
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
Free Excel Leave Tracker Template (Updated for 2026)
Free Excel Leave Tracker Template (Updated for 2026)
[TUTORIAL] Easy Way to CREATE a Monthly CALENDAR In Microsoft Word (without a template)
[TUTORIAL] Easy Way to CREATE a Monthly CALENDAR In Microsoft Word (without a template)
FREE Calendar Templates
FREE Calendar Templates
Availability Calendar Template
Availability Calendar Template
Create a Calendar in Microsoft Excel or Insert a Reference Calendar
Create a Calendar in Microsoft Excel or Insert a Reference Calendar
Best Calendar Ideas
Best Calendar Ideas
an excel spreadsheet in the office window
an excel spreadsheet in the office window
Outlook
Outlook
Online Design & Workflow Templates
Online Design & Workflow Templates
a calendar with different times on it and numbers for each month, including the date
a calendar with different times on it and numbers for each month, including the date
Google Sheets Calendar Templates | Firstprintable
Google Sheets Calendar Templates | Firstprintable
40+ Microsoft Calendar Templates - Free Word, Excel Documents
40+ Microsoft Calendar Templates - Free Word, Excel Documents
MS Excel 2016: How to Create a Line Chart
MS Excel 2016: How to Create a Line Chart
How to Create a Dynamic Monthly Calendar in Google Sheets - Template Provided
How to Create a Dynamic Monthly Calendar in Google Sheets - Template Provided
the dashboard screen shows data and graphs for different businesses, including information about their employees
the dashboard screen shows data and graphs for different businesses, including information about their employees
Using Office 365 Calendar and Groups for Increased Efficiency
Using Office 365 Calendar and Groups for Increased Efficiency

Retrieving Calendar IDs for a Specific User

To retrieve the calendar ID for a specific user, you can use the following API endpoint: GET https://graph.microsoft.com/v1.0/users/{user_id}/calendar. Replace '{user_id}' with the ID or email address of the user. The response will contain the user's calendar ID in the 'id' field.

For example, if you want to retrieve the calendar ID for a user with the email 'johndoe@contoso.com', you would use: GET https://graph.microsoft.com/v1.0/users/johndoe%40contoso.com/calendar. Note that the email address is URL-encoded.

Retrieving Calendar IDs for a Specific Group

To retrieve the calendar ID for a specific group, you can use the following API endpoint: GET https://graph.microsoft.com/v1.0/groups/{group_id}/calendar. Replace '{group_id}' with the ID or display name of the group. The response will contain the group's calendar ID in the 'id' field.

For instance, if you want to retrieve the calendar ID for a group with the display name 'Sales Team', you would use: GET https://graph.microsoft.com/v1.0/groups/Sales%20Team/calendar. Note that the display name is URL-encoded.

Retrieving calendar IDs is a fundamental aspect of managing calendars with Microsoft Graph API. By understanding and implementing the methods described above, you can efficiently interact with calendars in your Microsoft 365 environment. Happy coding!