22. Calendar
Microsoft Graph APIs
https://graph.microsoft.com
And more …
Mail
PeopleDocuments
Access data and
intelligence from
the Microsoft cloud
Enabling a
consistent
development
platform
For both
commercial
and consumer
Excel
Notebooks
Office Graph
Groups
Users
23. Many different APIs to access data
Two separate auth stacks
State of the world before Microsoft
Graph:
Work and school Personal
24. World today with Microsoft Graph:
Microsoft Graph
(https://graph.microsoft.com/)
Work and school Personal&
…
25. Single endpoint 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
What is Microsoft Graph?
https://graph.microsoft.com/
49. Data spread across multiple
services
Operation Service endpoint
GET my profile https://graph.microsoft.com/v1.0/me
GET my files https://graph.microsoft.com/v1.0/me/drive/root/children
GET my photo https://graph.microsoft.com/v1.0/me/photo/$value
GET my mail https://graph.microsoft.com/v1.0/me/messages
GET my calendar https://graph.microsoft.com/v1.0/me/calendar
GET my manager https://graph.microsoft.com/v1.0/me/manager
GET last user to modify file foo.txt
https://graph.microsoft.com/v1.0/me/drive/root/children/foo.txt/lastModifiedByUs
er
GET users in my organization https://graph.microsoft.com/v1.0/users
GET group conversations https://graph.microsoft.com/v1.0/groups/<id>/conversations
GET people related to me https://graph.microsoft.com/beta/me/people
GET my tasks https://graph.microsoft.com/beta/me/tasks
GET my notes https://graph.microsoft.com/beta/me/notes/notebooks
GET files trending around me https://graph.microsoft.com/beta/me/trendingAround
One endpoint to access it: https://graph.microsoft.com/
50. Single endpoint, OpenID Connect and OAuth 2.0
Single SDK
Single end user sign in experience
Single app registration experience
Works with Microsoft Graph
Single API endpoint, business and consumer
Authentication
51. • Sign users in using OpenID
Connect
Azure AD and Office 365 services
Supports MFA and federated user sign-in
• Device apps, web sites, SPAs,
and service apps
• Pin apps to Office 365 app
launcher from My apps
Single authentication flow for Office 365
52. Common consent
• Single auth flow for accessing all
O365 services
• Admin and end-user consent
• Secure protocol
OpenID Connect and OAuth 2.0
No capturing user credentials
Fine-grained access scopes
Long-term access through refresh tokens
53. • Client: Active Directory Authentication Library (ADAL)
.Net, Windows Store, Windows Phone
JavaScript
iOS
Android
Xamarin
Cordova
Node.js
Java
• Server
.Net: ASP.Net OWIN middleware for OpenID Connect and OAuth 2.0
Node.js
• More to come
Libraries:
http://github.com/AzureAD
update
58. Microsoft Graph Mobile SDKs
https://github.com/OfficeDev/Office-365-SDK-for-iOS
https://github.com/OfficeDev/Office-365-SDK-for-Android
No SDK needed—Make REST API calls via Jquery
Use the .NET SDK
61. People API (preview)
Search and browse for the people who matter most
Dynamically ranks people based on communication, collaboration, business relationship signals.
Augment search queries with topics discussed in previous communications
Fuzzy matching for misspelled names
Provides a complete view of an individual, combining properties from multiple Office 365 services.
Organization charts don’t always convey working relationships.
Learn who your colleagues interact with most closely.
64. Find Meeting Times API (preview)
Attendees and Meeting Duration
LocationConstraint, TimeConstraint
MaxCandidates
MeetingTimeCandidate with ‘Confidence’ and ‘Score’
(*)Only for Office 365 work and school accounts
69. Gateway to data and insights
in Office365
Use Microsoft Graph to build smart apps
Easy traversal of objects
and rich relationships
Web Standards, Open
Platform
Secure data access
Yes, this is a busy slide, but the main points are:
We have SDKs (ADAL and O365 for most major platforms)
You don’t need SDKs to leverage Office 365 APIs given they follow standards like Oauth and REST
We offer a Yeoman Generator for building Add-ins outside of Visual Studio
OneDrive is the core file storage platform for Office 365 that gives developers access to files regardless of where they may live. Office 365 files may be personal files stored in OneDrive Consumer, OneDrive for Business, or enterprise wide files may be stored in SharePoint. The great news is that the OneDrive API now allows developers to access all of these files via a single API. In addition, the OneDrive API integrates with the Microsoft Graph, which further simplifies data access and authentication across several Microsoft endpoints including Users, Groups, Mail, Calendar, Tasks.