SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Downloaden Sie, um offline zu lesen
Reach for the Cloud: Build
Solutions with the Power
of Microsoft Graph
Bill Ayers
Eur Ing Dr Bill Ayers
MCM/MCSM Charter SharePoint
MVP, MCT, MCTS, MCITP, MCSD, MCAD, MCSA, MCDBA, Professional
Scrum Master, etc. etc.
Flow Simulation Ltd.
www.SPDoctor.net
BillA@flosim.com
@SPDoctor
Consultant specialising in SharePoint and
Office 365 Development and Architecture
for Collaboration and Mobile Development
• What is a Graph?
• The Microsoft Graph
• Raw REST API
• MSGraphClient
• Conclusions
Agenda
What is a Graph?
Brainbow
Identify individual
neurons by using
fluorescent
proteins
Groups
People
Conversations
Files
Insights
Microsoft Graph
Groups
People
Conversations
Files
Insights
Microsoft Graph
Unified REST API and comprehensive
developer experience for integrating the data
and intelligence exposed by Microsoft services
(Microsoft 365).
Microsoft Graph
Action
Task pane
Dialog box
Event
Common across canvases
Canvas
specific
extensions
Data import
Dictionaries
Bot
Connector
Navigation
Branding
 
Extensions
Office 365 Platform
 
LIVE POLL
Yes No Maybe
Microsoft 365 Platform
 
LIVE POLL
Yes No Maybe
Microsoft Graph
Groups
People
Conversations
Files
Insights
Microsoft 365 Platform
Users Groups Outlook OneNote DynamicsSharePoint Intune
Teams
Azure AD
Planner
Excel
https://graph.microsoft.com
Microsoft Graph
Application –
web, mobile,
UWP, SPFx, etc.
Insights
Drawbacks of Office 365 Service APIs
• Multiple inconsistent APIs and endpoints to retrieve data
• Need to obtain multiple access tokens
• REST and OData standards have continued to evolve
• Different authorization mechanisms for work and personal
Service APIs vs. Microsoft Graph API
Microsoft Graph
Simplest way to access data in Office 365 and
other Microsoft cloud services
Service specific endpoints
Available and supported
Inconsistent and ad-hoc
Users Groups Outlook OneNoteSharePoint
Teams
Planner
https://graph.microsoft.com
Users Groups Outlook OneNoteSharePoint
Data
Outlook - Mail, Calendar, Contacts and Tasks
SharePoint -Sites and Lists, Links*, List Views*
OneDrive - Drives and Files
Teams – Channels*, Messages*
Planner - Tasks, Plans
Excel – Spreadsheets
OneNote – Notes, etc.
Windows 10 – Identity, Access controls, synch, domains
Dynamics – Financials*
EMS – AzureAD, Intune, ATP, Analytics, Alerts, Policies
*preview
Core business data
accessible through the
Microsoft Graph – with
more to come…
Is this person out of the office?
Who is their manager?
Where do they need to be next?
What documents have they been working
on recently?
Rich Context
Deep Insights
Real-time Updates
Calling the REST API
https://graph.microsoft.com/v1.0/users/
/{version}
/{resource}
/{id}
/{property}
https://{domain}
?{query-parameters}
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/bill
• Property: /users/bill/department
• Traverse to related resources via navigations: /users/bill/events
• Query parameters: /users/bill/events?$top=5
o Format results: $select, $orderby
o Control results: $filter, $expand
o Paging: $top, $skip, $skiptoken
/{version} ?{query-parameters}/{resource}/{id}/{property}
OData
https://{domain}
REST
Explore REST Endpoint
https://dev.office.com/ (follow link to Microsoft Graph
then link to Graph Explorer)
Using REST with (e.g.) JavaScript
var xhr = new XMLHttpRequest();
xhr.open('GET', "https://graph.microsoft.com/v1.0/me/");
xhr.setRequestHeader("Accept", "application/json;odata=verbose ");
xhr.onload = function () {
var data = JSON.parse(xhr.responseText);
document.getElementById(“output”).innerText = "Site title: " + data.d.Title
};
xhr.send();
jQuery.ajax({
url: encodeURI("https://graph.microsoft.com/v1.0/me/"),
headers: { accept: "application/json;odata=verbose" }
}).done(function (data) {
$("#output").text("Site title: " + data.d.Title);
}).fail(function (msg) {
$("#output").text("Request Failed: " + msg);
});
Note: an access token is usually required in the authorization header – outside the scope of this talk
Demo Docs
https://graph.microsoft.com > documentation
Wrapper SDKs
•Language-specific bindings
•Easier to use
•Varying degrees of ‘strong typing’
Code-genned Wrapper APIs
https://github.com/microsoftgraph/msgraph-sdk-javascript
$metadata/
OpenAPI
Code
generation
Manual
Fine-tuning
API
Demo: Traversing the Microsoft
Graph using Client Libraries
https://github.com/microsoftgraph/msgraph-sdk-javascript
MSGraphClient
Looking at Graph SDKs and
OfficeDev PnP-JS-Core
Which to use?
•Legacy APIs: CSOM, EWS, etc.
•REST APIs: Outlook, SharePoint, etc.
•Language-specific wrappers, e.g. PnP-JS-Core
•Microsoft Graph REST API
•Microsoft Graph language-specific APIs
•Context-based APIs (MSGraphClient)
• Microsoft Graph – single endpoint and open standards
• Microsoft Graph improving with more content
• Use with SPFx without AuthZ woes
• Improving fast – but may need “legacy” approaches
• Start building tomorrow’s business solutions!
Conclusions:
Resources
• dev.office.com
• Graph Explorer: https://developer.microsoft.com/en-us/graph/graph-explorer
• Microsoft Graph JavaScript client library:
https://github.com/microsoftgraph/msgraph-sdk-javascript/
• MSGraphClient documentation: https://docs.microsoft.com/en-
us/sharepoint/dev/spfx/use-msgraph
• Microsoft Graph: A Walkthrough - Adis Jugo (4:30pm today)
O365Con18 - Reach for the Cloud Build Solutions with the Power of Microsoft Graph - Bill Ayers
O365Con18 - Reach for the Cloud Build Solutions with the Power of Microsoft Graph - Bill Ayers

Weitere ähnliche Inhalte

Was ist angesagt?

SharePoint 2013 “App Model” Developing and Deploying Provider Hosted Apps
SharePoint 2013 “App Model” Developing and Deploying Provider Hosted AppsSharePoint 2013 “App Model” Developing and Deploying Provider Hosted Apps
SharePoint 2013 “App Model” Developing and Deploying Provider Hosted Apps
Sanjay Patel
 

Was ist angesagt? (20)

O365Con18 - Create an Immersive Experience with Office365 Data and Mixed Real...
O365Con18 - Create an Immersive Experience with Office365 Data and Mixed Real...O365Con18 - Create an Immersive Experience with Office365 Data and Mixed Real...
O365Con18 - Create an Immersive Experience with Office365 Data and Mixed Real...
 
O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...
O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...
O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...
 
Developing hybrid SharePoint apps that run on-premise and in the cloud - ESPC...
Developing hybrid SharePoint apps that run on-premise and in the cloud - ESPC...Developing hybrid SharePoint apps that run on-premise and in the cloud - ESPC...
Developing hybrid SharePoint apps that run on-premise and in the cloud - ESPC...
 
External collaboration with Azure B2B
External collaboration with Azure B2BExternal collaboration with Azure B2B
External collaboration with Azure B2B
 
APIs, APIs Everywhere!
APIs, APIs Everywhere!APIs, APIs Everywhere!
APIs, APIs Everywhere!
 
Hybrid SharePoint Deployments
Hybrid SharePoint DeploymentsHybrid SharePoint Deployments
Hybrid SharePoint Deployments
 
[Roine] Serverless: Don't Take It Literally
[Roine] Serverless: Don't Take It Literally[Roine] Serverless: Don't Take It Literally
[Roine] Serverless: Don't Take It Literally
 
SharePoint 2013 “App Model” Developing and Deploying Provider Hosted Apps
SharePoint 2013 “App Model” Developing and Deploying Provider Hosted AppsSharePoint 2013 “App Model” Developing and Deploying Provider Hosted Apps
SharePoint 2013 “App Model” Developing and Deploying Provider Hosted Apps
 
ECS19 - Matthew McDermott - How to Run a Search Project in SharePoint
ECS19 - Matthew McDermott - How to Run a Search Project in SharePointECS19 - Matthew McDermott - How to Run a Search Project in SharePoint
ECS19 - Matthew McDermott - How to Run a Search Project in SharePoint
 
External collaboration with Azure B2B
External collaboration with Azure B2B External collaboration with Azure B2B
External collaboration with Azure B2B
 
ECS19 - Bill Ayers - UNLOCK YOUR BUSINESS KNOWLEDGE WITH THE MICROSOFT GRAPH,...
ECS19 - Bill Ayers - UNLOCK YOUR BUSINESS KNOWLEDGE WITH THE MICROSOFT GRAPH,...ECS19 - Bill Ayers - UNLOCK YOUR BUSINESS KNOWLEDGE WITH THE MICROSOFT GRAPH,...
ECS19 - Bill Ayers - UNLOCK YOUR BUSINESS KNOWLEDGE WITH THE MICROSOFT GRAPH,...
 
[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence
[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence
[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence
 
Developing a Provider Hosted SharePoint app
Developing a Provider Hosted SharePoint appDeveloping a Provider Hosted SharePoint app
Developing a Provider Hosted SharePoint app
 
SPUnite17 Building Great Client Side Web Parts with SPFx
SPUnite17 Building Great Client Side Web Parts with SPFxSPUnite17 Building Great Client Side Web Parts with SPFx
SPUnite17 Building Great Client Side Web Parts with SPFx
 
Office 365 Connectors
Office 365 ConnectorsOffice 365 Connectors
Office 365 Connectors
 
[McDermott] Configuring SharePoint Hybrid Search and Taxonomy
[McDermott] Configuring SharePoint Hybrid Search and Taxonomy[McDermott] Configuring SharePoint Hybrid Search and Taxonomy
[McDermott] Configuring SharePoint Hybrid Search and Taxonomy
 
[Vončina] Configuring SharePoint 2016 for BI Scenarios
[Vončina] Configuring SharePoint 2016 for BI Scenarios[Vončina] Configuring SharePoint 2016 for BI Scenarios
[Vončina] Configuring SharePoint 2016 for BI Scenarios
 
[Wilen] Enriching conversations with your data in Microsoft Teams
[Wilen] Enriching conversations with your data in Microsoft Teams[Wilen] Enriching conversations with your data in Microsoft Teams
[Wilen] Enriching conversations with your data in Microsoft Teams
 
Developer’s Independence Day: Introducing the SharePoint App Model
Developer’s Independence Day:Introducing the SharePoint App ModelDeveloper’s Independence Day:Introducing the SharePoint App Model
Developer’s Independence Day: Introducing the SharePoint App Model
 
App Model For SharePoint 2013
App Model For SharePoint 2013App Model For SharePoint 2013
App Model For SharePoint 2013
 

Ähnlich wie O365Con18 - Reach for the Cloud Build Solutions with the Power of Microsoft Graph - Bill Ayers

Ähnlich wie O365Con18 - Reach for the Cloud Build Solutions with the Power of Microsoft Graph - Bill Ayers (20)

Microsoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needsMicrosoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needs
 
Microsoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needsMicrosoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needs
 
Power of Microsoft Graph API by Nilesh Shah SharePoint Saturday Toronto 2017
Power of Microsoft Graph API by Nilesh Shah SharePoint Saturday Toronto 2017Power of Microsoft Graph API by Nilesh Shah SharePoint Saturday Toronto 2017
Power of Microsoft Graph API by Nilesh Shah SharePoint Saturday Toronto 2017
 
Xamarin microsoft graph
Xamarin microsoft graphXamarin microsoft graph
Xamarin microsoft graph
 
#Techorama belgium 2018 vincent biret what's new with the #MicrosoftGraph
#Techorama belgium 2018 vincent biret what's new with the #MicrosoftGraph#Techorama belgium 2018 vincent biret what's new with the #MicrosoftGraph
#Techorama belgium 2018 vincent biret what's new with the #MicrosoftGraph
 
Create cross-platform apps that interact with Microsoft Graph and Office 365 ...
Create cross-platform apps that interact with Microsoft Graph and Office 365 ...Create cross-platform apps that interact with Microsoft Graph and Office 365 ...
Create cross-platform apps that interact with Microsoft Graph and Office 365 ...
 
Microsoft Graph API - A Single Stop For Your Cloud Solution
Microsoft Graph API - A Single Stop For Your Cloud SolutionMicrosoft Graph API - A Single Stop For Your Cloud Solution
Microsoft Graph API - A Single Stop For Your Cloud Solution
 
#SPSToronto The SharePoint Framework and the Microsoft Graph on steroids with...
#SPSToronto The SharePoint Framework and the Microsoft Graph on steroids with...#SPSToronto The SharePoint Framework and the Microsoft Graph on steroids with...
#SPSToronto The SharePoint Framework and the Microsoft Graph on steroids with...
 
#SPSottawa The SharePoint Framework and The Microsoft Graph on steroids with ...
#SPSottawa The SharePoint Framework and The Microsoft Graph on steroids with ...#SPSottawa The SharePoint Framework and The Microsoft Graph on steroids with ...
#SPSottawa The SharePoint Framework and The Microsoft Graph on steroids with ...
 
Granite state #spug The #microsoftGraph and #SPFx on steroids with #AzureFunc...
Granite state #spug The #microsoftGraph and #SPFx on steroids with #AzureFunc...Granite state #spug The #microsoftGraph and #SPFx on steroids with #AzureFunc...
Granite state #spug The #microsoftGraph and #SPFx on steroids with #AzureFunc...
 
Office Add-in & Microsoft Graph - Development 101
Office Add-in & Microsoft Graph - Development 101Office Add-in & Microsoft Graph - Development 101
Office Add-in & Microsoft Graph - Development 101
 
SharePoint Saturday Chicago - Everything your need to know about the Microsof...
SharePoint Saturday Chicago - Everything your need to know about the Microsof...SharePoint Saturday Chicago - Everything your need to know about the Microsof...
SharePoint Saturday Chicago - Everything your need to know about the Microsof...
 
ATD 13 - Enhancing your applications using Microsoft Graph API
ATD 13 - Enhancing your applications using Microsoft Graph APIATD 13 - Enhancing your applications using Microsoft Graph API
ATD 13 - Enhancing your applications using Microsoft Graph API
 
The slides from my session with Albert-Jan Schot at SharePoint Saturday Monaco
The slides from my session with Albert-Jan Schot at SharePoint Saturday MonacoThe slides from my session with Albert-Jan Schot at SharePoint Saturday Monaco
The slides from my session with Albert-Jan Schot at SharePoint Saturday Monaco
 
SPS Utah - Everything your need to know about the Microsoft Graph as a ShareP...
SPS Utah - Everything your need to know about the Microsoft Graph as a ShareP...SPS Utah - Everything your need to know about the Microsoft Graph as a ShareP...
SPS Utah - Everything your need to know about the Microsoft Graph as a ShareP...
 
SharePoint Fest DC 2018 - Everything your need to know about the Microsoft Gr...
SharePoint Fest DC 2018 - Everything your need to know about the Microsoft Gr...SharePoint Fest DC 2018 - Everything your need to know about the Microsoft Gr...
SharePoint Fest DC 2018 - Everything your need to know about the Microsoft Gr...
 
SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...
SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...
SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...
 
Microsoft Graph
Microsoft GraphMicrosoft Graph
Microsoft Graph
 
Microsoft Flow - SharePoint Saturday Paris 2017
Microsoft Flow - SharePoint Saturday Paris 2017Microsoft Flow - SharePoint Saturday Paris 2017
Microsoft Flow - SharePoint Saturday Paris 2017
 
B5 - Introduction à Microsoft Flow - Isabelle Van Campenhoudt, Sabrine chouk,...
B5 - Introduction à Microsoft Flow - Isabelle Van Campenhoudt, Sabrine chouk,...B5 - Introduction à Microsoft Flow - Isabelle Van Campenhoudt, Sabrine chouk,...
B5 - Introduction à Microsoft Flow - Isabelle Van Campenhoudt, Sabrine chouk,...
 

Mehr von NCCOMMS

Mehr von NCCOMMS (20)

O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...
O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...
O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...
 
O365Con19 - Model-driven Apps or Canvas Apps? - Rick Bakker
O365Con19 - Model-driven Apps or Canvas Apps? - Rick BakkerO365Con19 - Model-driven Apps or Canvas Apps? - Rick Bakker
O365Con19 - Model-driven Apps or Canvas Apps? - Rick Bakker
 
O365Con19 - Office 365 Groups Surviving the Real World - Jasper Oosterveld
O365Con19 - Office 365 Groups Surviving the Real World - Jasper OosterveldO365Con19 - Office 365 Groups Surviving the Real World - Jasper Oosterveld
O365Con19 - Office 365 Groups Surviving the Real World - Jasper Oosterveld
 
O365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis Jugo
O365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis JugoO365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis Jugo
O365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis Jugo
 
O365Con19 - Sharepoint with (Artificial) Intelligence - Adis Jugo
O365Con19 - Sharepoint with (Artificial) Intelligence - Adis JugoO365Con19 - Sharepoint with (Artificial) Intelligence - Adis Jugo
O365Con19 - Sharepoint with (Artificial) Intelligence - Adis Jugo
 
O365Con19 - What Do You Mean 90 days Isn't Enough - Paul Hunt
O365Con19 - What Do You Mean 90 days Isn't Enough - Paul HuntO365Con19 - What Do You Mean 90 days Isn't Enough - Paul Hunt
O365Con19 - What Do You Mean 90 days Isn't Enough - Paul Hunt
 
O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...
O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...
O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...
 
O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...
O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...
O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...
 
O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...
O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...
O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...
 
O365Con19 - Lets Get Started with Azure Container Instances - Jussi Roine
O365Con19 - Lets Get Started with Azure Container Instances - Jussi RoineO365Con19 - Lets Get Started with Azure Container Instances - Jussi Roine
O365Con19 - Lets Get Started with Azure Container Instances - Jussi Roine
 
O365Con19 - Azure Blackbelt - Jussi Roine
O365Con19 - Azure Blackbelt - Jussi RoineO365Con19 - Azure Blackbelt - Jussi Roine
O365Con19 - Azure Blackbelt - Jussi Roine
 
O365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna Lins
O365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna LinsO365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna Lins
O365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna Lins
 
O365Con19 - Be The Protagonist of Your Modern Workplace - Corinna Lins
O365Con19 - Be The Protagonist of Your Modern Workplace - Corinna LinsO365Con19 - Be The Protagonist of Your Modern Workplace - Corinna Lins
O365Con19 - Be The Protagonist of Your Modern Workplace - Corinna Lins
 
O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...
O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...
O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...
 
O365Con19 - Sharing Code Efficiently in your Organisation - Elio Struyf
O365Con19 - Sharing Code Efficiently in your Organisation - Elio StruyfO365Con19 - Sharing Code Efficiently in your Organisation - Elio Struyf
O365Con19 - Sharing Code Efficiently in your Organisation - Elio Struyf
 
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
 
O365Con19 - Keep Control of Your Data with AIP and CA - Bram de Jager
O365Con19 - Keep Control of Your Data with AIP and CA - Bram de JagerO365Con19 - Keep Control of Your Data with AIP and CA - Bram de Jager
O365Con19 - Keep Control of Your Data with AIP and CA - Bram de Jager
 
O365Con19 - Kaizala a Dive Into the Unknown - Rick van Rousselt
O365Con19 - Kaizala a Dive Into the Unknown - Rick van RousseltO365Con19 - Kaizala a Dive Into the Unknown - Rick van Rousselt
O365Con19 - Kaizala a Dive Into the Unknown - Rick van Rousselt
 
O365Con19 - How to Inspire Users to Unstick from Email - Luise Freese
O365Con19 - How to Inspire Users to Unstick from Email - Luise FreeseO365Con19 - How to Inspire Users to Unstick from Email - Luise Freese
O365Con19 - How to Inspire Users to Unstick from Email - Luise Freese
 
O365Con19 - O365 Identity Management and The Golden Config - Chris Goosen
O365Con19 - O365 Identity Management and The Golden Config - Chris GoosenO365Con19 - O365 Identity Management and The Golden Config - Chris Goosen
O365Con19 - O365 Identity Management and The Golden Config - Chris Goosen
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

O365Con18 - Reach for the Cloud Build Solutions with the Power of Microsoft Graph - Bill Ayers

  • 1.
  • 2. Reach for the Cloud: Build Solutions with the Power of Microsoft Graph Bill Ayers
  • 3. Eur Ing Dr Bill Ayers MCM/MCSM Charter SharePoint MVP, MCT, MCTS, MCITP, MCSD, MCAD, MCSA, MCDBA, Professional Scrum Master, etc. etc. Flow Simulation Ltd. www.SPDoctor.net BillA@flosim.com @SPDoctor Consultant specialising in SharePoint and Office 365 Development and Architecture for Collaboration and Mobile Development
  • 4. • What is a Graph? • The Microsoft Graph • Raw REST API • MSGraphClient • Conclusions Agenda
  • 5. What is a Graph?
  • 6. Brainbow Identify individual neurons by using fluorescent proteins
  • 9. Unified REST API and comprehensive developer experience for integrating the data and intelligence exposed by Microsoft services (Microsoft 365). Microsoft Graph
  • 10. Action Task pane Dialog box Event Common across canvases Canvas specific extensions Data import Dictionaries Bot Connector Navigation Branding   Extensions Office 365 Platform
  • 11.   LIVE POLL Yes No Maybe Microsoft 365 Platform
  • 12.   LIVE POLL Yes No Maybe Microsoft Graph Groups People Conversations Files Insights Microsoft 365 Platform
  • 13. Users Groups Outlook OneNote DynamicsSharePoint Intune Teams Azure AD Planner Excel https://graph.microsoft.com Microsoft Graph Application – web, mobile, UWP, SPFx, etc. Insights
  • 14. Drawbacks of Office 365 Service APIs • Multiple inconsistent APIs and endpoints to retrieve data • Need to obtain multiple access tokens • REST and OData standards have continued to evolve • Different authorization mechanisms for work and personal
  • 15. Service APIs vs. Microsoft Graph API Microsoft Graph Simplest way to access data in Office 365 and other Microsoft cloud services Service specific endpoints Available and supported Inconsistent and ad-hoc Users Groups Outlook OneNoteSharePoint Teams Planner https://graph.microsoft.com Users Groups Outlook OneNoteSharePoint
  • 16. Data Outlook - Mail, Calendar, Contacts and Tasks SharePoint -Sites and Lists, Links*, List Views* OneDrive - Drives and Files Teams – Channels*, Messages* Planner - Tasks, Plans Excel – Spreadsheets OneNote – Notes, etc. Windows 10 – Identity, Access controls, synch, domains Dynamics – Financials* EMS – AzureAD, Intune, ATP, Analytics, Alerts, Policies *preview
  • 17. Core business data accessible through the Microsoft Graph – with more to come… Is this person out of the office? Who is their manager? Where do they need to be next? What documents have they been working on recently? Rich Context Deep Insights Real-time Updates
  • 18. Calling the REST API https://graph.microsoft.com/v1.0/users/ /{version} /{resource} /{id} /{property} https://{domain} ?{query-parameters}
  • 19. 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/bill • Property: /users/bill/department • Traverse to related resources via navigations: /users/bill/events • Query parameters: /users/bill/events?$top=5 o Format results: $select, $orderby o Control results: $filter, $expand o Paging: $top, $skip, $skiptoken /{version} ?{query-parameters}/{resource}/{id}/{property} OData https://{domain} REST
  • 20. Explore REST Endpoint https://dev.office.com/ (follow link to Microsoft Graph then link to Graph Explorer)
  • 21. Using REST with (e.g.) JavaScript var xhr = new XMLHttpRequest(); xhr.open('GET', "https://graph.microsoft.com/v1.0/me/"); xhr.setRequestHeader("Accept", "application/json;odata=verbose "); xhr.onload = function () { var data = JSON.parse(xhr.responseText); document.getElementById(“output”).innerText = "Site title: " + data.d.Title }; xhr.send(); jQuery.ajax({ url: encodeURI("https://graph.microsoft.com/v1.0/me/"), headers: { accept: "application/json;odata=verbose" } }).done(function (data) { $("#output").text("Site title: " + data.d.Title); }).fail(function (msg) { $("#output").text("Request Failed: " + msg); }); Note: an access token is usually required in the authorization header – outside the scope of this talk
  • 23. Wrapper SDKs •Language-specific bindings •Easier to use •Varying degrees of ‘strong typing’
  • 25. Demo: Traversing the Microsoft Graph using Client Libraries https://github.com/microsoftgraph/msgraph-sdk-javascript
  • 27. Looking at Graph SDKs and OfficeDev PnP-JS-Core
  • 28. Which to use? •Legacy APIs: CSOM, EWS, etc. •REST APIs: Outlook, SharePoint, etc. •Language-specific wrappers, e.g. PnP-JS-Core •Microsoft Graph REST API •Microsoft Graph language-specific APIs •Context-based APIs (MSGraphClient)
  • 29. • Microsoft Graph – single endpoint and open standards • Microsoft Graph improving with more content • Use with SPFx without AuthZ woes • Improving fast – but may need “legacy” approaches • Start building tomorrow’s business solutions! Conclusions:
  • 30. Resources • dev.office.com • Graph Explorer: https://developer.microsoft.com/en-us/graph/graph-explorer • Microsoft Graph JavaScript client library: https://github.com/microsoftgraph/msgraph-sdk-javascript/ • MSGraphClient documentation: https://docs.microsoft.com/en- us/sharepoint/dev/spfx/use-msgraph • Microsoft Graph: A Walkthrough - Adis Jugo (4:30pm today)