Getting started with MS
Graph API
Jasjit Chopra
Agenda
• Introduction to MS Graph API
• Getting started
• Basic Operations
What is Microsoft Graph?
Single API for:
1.Accessing data
/me, /users, /groups, /messages, /drive, ….
2.Traversing data
/drive/items/<id>/lastmodifiedByUser
3.Accessing insights
/insights/trending
4.Work/School and Personal
https://graph.microsoft.com/
Introduction – Rest API for M365
Azure Active Directory
And more……
Education
Devices
Activities
Advanced Threat Analytics
Intune
Identity Management
Enterprise Mobility and Security
Excel
PlannerOneNote
Microsoft Teams
Outlook/Exchange
OneDrive
SharePoint
Introduction
• All types of users
• Corporate (@contoso.com)
• Consumer (@outlook.com)
• Simplified Access
• One endpoint
• One auth key
• One set of docs
• One SDK !
State of the world before Microsoft Graph
•Many different APIs to access data
•Separate auth stacks for work and personal
Work and school Personal
Today’s world with Microsoft Graph
Microsoft Graph
https://graph.microsoft.com
Work and school Personal
…
Getting Started (Graph Explorer)
https://graph.microsoft.com
Basic Operations
1. List: GET /users
2. Get: GET /users/{id}
3. Create: POST /users
4. Update: PATCH /users/{id}
5. Delete: DELETE /users/{id}
6. Invoke: POST /domains/{id}/verify
7. Batch: POST /$batch
Code Samples and SDKs
https://developer.microsoft.com/en-us/graph/code-samples-and-sdks
MS Graph API
DEMO
Thank you !
@jasjitchopra
#OfficeDev

Getting started with ms graph api

  • 1.
    Getting started withMS Graph API Jasjit Chopra
  • 2.
    Agenda • Introduction toMS Graph API • Getting started • Basic Operations
  • 3.
    What is MicrosoftGraph? Single API for: 1.Accessing data /me, /users, /groups, /messages, /drive, …. 2.Traversing data /drive/items/<id>/lastmodifiedByUser 3.Accessing insights /insights/trending 4.Work/School and Personal https://graph.microsoft.com/
  • 4.
    Introduction – RestAPI for M365 Azure Active Directory And more…… Education Devices Activities Advanced Threat Analytics Intune Identity Management Enterprise Mobility and Security Excel PlannerOneNote Microsoft Teams Outlook/Exchange OneDrive SharePoint
  • 5.
    Introduction • All typesof users • Corporate (@contoso.com) • Consumer (@outlook.com) • Simplified Access • One endpoint • One auth key • One set of docs • One SDK !
  • 6.
    State of theworld before Microsoft Graph •Many different APIs to access data •Separate auth stacks for work and personal Work and school Personal
  • 7.
    Today’s world withMicrosoft Graph Microsoft Graph https://graph.microsoft.com Work and school Personal …
  • 8.
    Getting Started (GraphExplorer) https://graph.microsoft.com
  • 9.
    Basic Operations 1. List:GET /users 2. Get: GET /users/{id} 3. Create: POST /users 4. Update: PATCH /users/{id} 5. Delete: DELETE /users/{id} 6. Invoke: POST /domains/{id}/verify 7. Batch: POST /$batch
  • 10.
    Code Samples andSDKs https://developer.microsoft.com/en-us/graph/code-samples-and-sdks
  • 11.
  • 12.