What email address or phone number would you like to use to sign in to Docs.com?
If you already have an account that you use with Office or other Microsoft services, enter it here.
Or sign in with:
Signing in allows you to download and like content, and it provides the authors analytical data about your interactions with their content.
Embed code for: O365 Saturday MS Graph API
Select a size
These are the slides used in the O365 Saturday Event in Australia. The slides are updated to include Build 2017 announcements.
Microsoft Graph API – Build Intelligent Apps
Who am I?
Ashish aka Ash.
Office Development MVP
Office 365 Dev
Office 365 Platform
STANDALONE WEB, DEVICE, AND SERVICE APPS
Data & Intelligence
- User, group and organizational
Microsoft Teams API - preview
Project Rome API - preview
SharePoint Sites API – GA
OneNote API – GA
Planner API – GA
Single API for:
/me, /users, /groups, /messages, /drive, ….
Work/school and personal
Register your app at https://apps.dev.microsoft.com
Who can consent
Permissions of the request
Get access on behalf of users
Get access as a service
Mobile, Web and Single page app
Service and Daemon
Users can consent
for their data
Admin can consent
for them or for all users
Only admin can consent
Azure AD Permission
Enable user-consent transparency
OpenID Connect and OAuth2.0
Not storing user credentials
Fine-grained access scopes
Long-term access through refresh tokens
Act on the Microsoft Graph as Deamon
Authentication is certificate-based
Act on the Microsoft Graph as an authenticated user
60+ delegated permissions
Does not replace the actual permissions on the data
Tools & SDK
Calling the API
HTTP verbs dictate the request intent: GET | POST | PATCH | PUT | DELETE
Version: / v1.0 or /beta
Resource: /users, /groups, /sites, /drives, /devices, more…
Member from collection: /users/AAA
Traverse to related resources via navigations: /users/AAA/events
Query parameters: /users/AAA/events?$top=5
Format results: $select | $orderby
Control results: $filter | $expand
Paging: $top | $skip | $skiptoken
API - https://graph.microsoft.com/
GET my profile
GET my files
GET my photo
GET my high importance email
/v1.0/me/messages?$filter=importance eq 'high'
GET my calendar
GET my manager
GET last user to modify foo.txt
GET my recent files
GET Office 365 groups I’m member of
/v1.0/me/memberOf/$/?$filter=groupTypes/any(a:a eq 'unified')
GET users in my organization
GET group conversations
GET people relevant to me
GET files trending around me
GET the root SharePoint site
GET my Planner tasks
GET my notes
From Graph Explorer
REST HTTP Calls
Getting Started with Graph API – Sample Solution
Azure AD registration
Permission & Scopes
Azure AD v2 registration
Difference and recommendation on v1 v/s v2
SDK v/s REST
New Graph Explorer
Can I use for SharePoint?
Can I use in SPFx?
Apart from data, what else it can talk in Office 365?
Can I add custom data?
Can I use it on-premises?
How can I distribute the app?
Microsoft Graph at Build 2017
Generally Available ( v1.0 )
Preview ( beta )
Azure Active Directory
Outlook mail, calendar and contacts
Office 365 groups and conversations
OneDrive drives and files
Insights (powering Delve)*
Office 365 Reporting
AD Administrative Units
Webhooks for OneDrive and Outlook
Delta query for OneDrive
SDKs for .Net/Xamarin and Android
SDKs for JS/Node and PHP
AppOnly webhooks for Outlook
Delta query for AAD and Outlook
Extend Graph with your own data
SDKs for iOS, Python, Ruby
Hybrid on-premise support for Outlook (config wizard support)
Webhooks for users and groups
Webhooks for Outlook consumer
Delta query scoping filter for AAD
Microsoft Graph is available in every Office 365 and Azure region and complies with sovereign/national cloud data requirements
Imagine what you can build
Intelligent Business Process
… and MORE
Question and Answer
Ashish Trivedi admin@365Share.info
Thanks for listening
Remember to submit your feedback so you go in the draw to win prizes at the end of the day
© 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Microsoft Ignite 2016
© Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Microsoft Build 2017
© 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
© 2015 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.nd conversations
© Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE