openapi: 3.1.0
info:
title: Microsoft 365 (Microsoft Graph API) Calendar Me API
description: 'Microsoft 365 productivity and collaboration data is accessed through
Microsoft Graph, a unified REST endpoint at https://graph.microsoft.com.
The v1.0 service exposes users, groups, mail, calendars, files (OneDrive),
Teams, SharePoint sites, and more. Authentication is via OAuth 2.0
bearer tokens (Microsoft Entra ID).
'
version: '1.0'
contact:
name: Microsoft Graph
url: https://learn.microsoft.com/en-us/graph/overview
servers:
- url: https://graph.microsoft.com/v1.0
description: Microsoft Graph v1.0
security:
- oauth2: []
tags:
- name: Me
paths:
/me:
get:
tags:
- Me
summary: Get the signed-in user's profile
responses:
'200':
description: User profile
content:
application/json:
schema:
$ref: '#/components/schemas/User'
/me/manager:
get:
tags:
- Me
summary: Get the signed-in user's manager
responses:
'200':
description: Manager user
/me/memberOf:
get:
tags:
- Me
summary: Get groups and directory roles the user is a member of
responses:
'200':
description: Membership list
components:
schemas:
User:
type: object
properties:
id:
type: string
displayName:
type: string
givenName:
type: string
surname:
type: string
mail:
type: string
userPrincipalName:
type: string
jobTitle:
type: string
securitySchemes:
oauth2:
type: oauth2
description: Microsoft Entra ID OAuth 2.0
flows:
authorizationCode:
authorizationUrl: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
tokenUrl: https://login.microsoftonline.com/common/oauth2/v2.0/token
scopes:
User.Read: Sign in and read user profile
User.ReadWrite.All: Read and write all users' full profiles
Group.Read.All: Read all groups
Mail.Read: Read user mail
Calendars.Read: Read user calendars
Files.Read.All: Read all files
Channel.ReadBasic.All: Read basic channel info
clientCredentials:
tokenUrl: https://login.microsoftonline.com/common/oauth2/v2.0/token
scopes:
https://graph.microsoft.com/.default: Use app-registered Graph permissions