Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Microsoft 365 Developer Bootcamp Zurich - Microsoft Graph

Microsoft 365 Developer Bootcamp Zurich - Microsoft Graph

Introduction to Microsoft Graph at the Microsoft 365 Developer Bootcamp Zurich

David Schneider

October 04, 2019
Tweet

More Decks by David Schneider

Other Decks in Technology

Transcript

  1. Leveraging the Microsoft Graph API from the SharePoint Framework Extending

    SharePoint with information from the Microsoft Graph
  2. We're focused on two massive platform opportunities, one, Microsoft Azure,

    the other Microsoft 365. Microsoft 365 is the coming together of Windows and Office to build this multi-device, multi-sense experience, service, and platform. And it puts people at the center, versus devices at the center. – Satya Nadella
  3. Data and Services Core schema for productivity More than 18.5T

    nodes across work, life, and school Customers are always in control of their data Microsoft Graph Services for search, analytics, natural language, and more Microsoft Graph
  4. Microsoft 365 Platform web, device, and service apps Extend Microsoft

    365 experiences 1 iOS/Android/Windows/Web Build your experience Microsoft Graph
  5. Microsoft Graph Gateway to your data in the Microsoft-cloud Users,

    Groups, Organizations Outlook SharePoint OneDrive Teams Planner Excel OneNote Activities Device Relay Commands Notifications Azure AD Intune Identity Manager Advanced Threat Analytics Advanced Threat Protection Mail, Calendar, Contacts and Tasks Sites and Lists Drives and Files Channels, Messages Tasks and Plans Spreadsheets Notes, and more… Identity Management Access Control Synchronization Domains Administrative Units Applications and Devices Advanced Threat Analytics Advanced Threat Protection Alerts Policies and more… Office 365 Windows 10 Enterprise Mobility + Security https://graph.microsoft.com
  6. Accessing the Microsoft Graph Direct REST API • Any platform

    • Any language • Any framework Native SDKs • Utilize framework & platform specific implementations • Abstracts the details of constructing & processing REST requests over HTTP • .NET, iOS, Android, PhP, Ruby, JavaScript, etc.
  7. Azure AD Applications: The Microsoft Graph Dependency All Microsoft Graph

    access options (REST API / SDKs) depend on Azure AD Must register an Azure AD application to access the Microsoft Graph Use the Azure AD application to authenticate, gain authorization & obtain an access token Access token included in the underlying HTTP request to call the Microsoft Graph endpoint
  8. Office 365 and SharePoint Online Users Already Authenticated Users in

    Office 365 are already authenticated Calls to the Microsoft Graph are proxied through SharePoint Online
  9. Demo Accessing User Details from the Microsoft Graph in a

    SharePoint Framework Client-Side Web Part
  10. Calling Secured Services from Client-side Code is a Challenge Calling

    a secured service, like Microsoft Graph, requires the acquisition of a token Client-side applications cannot securely do this across domains seamlessly
  11. Solution: Proxy Calls to Secured Services through Existing Application SharePoint

    Online already has an Azure AD application Permission requests to Azure AD applications (aka: resources) must be approved
  12. Microsoft Graph JavaScript SDK Microsoft Graph is accessible via REST

    API & various SDKs Client-side solutions can leverage the JavaScript SDK https://github.com/microsoftgraph/msgraph-sdk-javascript
  13. Microsoft Graph TypeScript Type Declarations Use the Microsoft Graph JavaScript

    SDK in TypeScript applications TypeScript type declarations introduce strong types and documentation to client-side projects https://github.com/microsoftgraph/msgraph-typescript-typings
  14. SharePoint Framework Includes a Microsoft Graph Client MSGraphClient: SharePoint Framework’s

    Microsoft Graph Client Abstracts the token acquisition from the SharePoint Framework’s support for Azure AD Wraps the Microsoft Graph JavaScript SDK and initializes it with one line that returns a promise
  15. Reading further Microsoft Graph https://developer.microsoft.com/graph Microsoft Graph JavaScript SDK https://github.com/microsoftgraph/msgraph-sdk-javascript

    SharePoint Framework Documentation https://docs.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview Use the MSGraphClient to Connect to Microsoft Graph https://docs.microsoft.com/sharepoint/dev/spfx/use-msgraph