#MSGraph introduction at #M365SaturdayOttawa

50 %
50 %
Information about #MSGraph introduction at #M365SaturdayOttawa

Published on October 17, 2020

Author: VincentBIRET

Source: slideshare.net

1. Introduction to the Microsoft Graph : Getting Started Quickly & Getting the Most Out of It Vincent Biret Microsoft Microsoft Graph SDKs Software developer Montréal @baywet

2. Thank you Sponsors!!! #M365Ottawa @SPSOttawa

3. Introduction to the Microsoft Graph Microsoft Graph Toolkit Authentication & authorization Tips Conclusion Agenda

4. Your gateway to Microsoft 365 Your app Gateway Your data or your customer’s Office 365 Windows 10 Enterprise Mobility and Security 1Microsoft Graph

5. Personal and organizational accounts (lucy)

6. What data is available? https://graph.microsoft.com Users, Groups, Organizations Outlook SharePoint OneDrive Teams Planner Excel OneNote Activities Devices relays Commands Notifications Azure AD Intune Identity Manager Advanced Threat Analytics Advanced Threat Protection Email, Calendar, Contacts and Tasks Sites and Lists Disks and Files Channels, Messages Tasks and Plans Worksheets Notes, and more… Identity management Access control Synchronization Domains Organizational units Applications and Devices Threats analysis Threats protection Alerts Policies And more… Office 365 Windows 10 Enterprise mobility and security Dynamics 365 Finances

7. Wide and transversal API SITES GROUPS USERSINSIGHTS CONTACTS PEOPLE ORGANIZATION EMAIL CONTENT DOCUMENTS DEVICES TEAMS REPORTS ME ADMIN UNITS ROLES APPS SECURITY DATA & AUTOMATION ORGANIZATION USERS BUSINESS PARTNER

8. Basics • HTTP verbs represent the intent: GET | POST | PATCH | PUT | DELETE • Version: /v1.0 or /beta • Resource: /users, /groups, /sites, /drives, /devices, … • Collection item: /users/john • Property: /users/john/department • Linked data via navigation: /users/john/events • Query parameters: /users/john/events?$top=5 o Format: $select | $orderby o Filter/Navigate: $filter | $expand o Pagination: $top | $skip | $skiptoken /{version} ?{parameters}/{resource}/{id}/{property}

9. SDKs Generally Available ( /v1.0 ) Preview ( /beta )

10. Microsoft Graph Toolkit Reusable web components bound to Microsoft 365 data Work with PWA’s, SPFx, Teams Tabs and more

11. Why use Microsoft Graph Toolkit? Fully functional Cut development time, simplify code, and build features faster Beautiful, but flexible Built to look like an M365 experience, but fully customizable Works everywhere Based on web standards and can be used wherever you use HTML.

12. The components Login Person Agenda Person Card People People Picker Tasks Teams Channel Picker Get Try them all on the playground at https://mgt.dev!

13. Basics access_tokenMSAL Your APP Microsoft Graph id_token access_token refresh_token Microsoft Identity

14. Context Users can consent for their data, admins for the whole tenant Only admins can consent Delegated permissions User’s privileges App permissions Permission Type: applicationPermission Type: Delegated Access as a user Access as a service Effective PermissionsEffective Permissions

15. Scopes structure specific: .All, .Shared, etc Read, ReadWrite, etc. Target Entity: files, mail, groups, calendars, etc… Ex: User.Read Directory.ReadWrite.All Resource Action Scope

16. Know your OData! Sets $count $filter $expand $orderby $select $skip/$skipToken $top Search $search Values $ref $value

17. $whatif to the rescue Simply add $whatif at the end of a request to know where the data is coming from Useful when debugging /me/?$whatif { "Description": "Execute HTTP request", "Uri": "https://graph.windows.net/v2/c03a026e-335e-458c-bad2-3309fe59663b/users('c9452811- 4b6e-4073-b7cf- 3f681f55539b')?$select=businessPhones,displayName,givenName,jobTitle,mail,mobilePhone,office Location,preferredLanguage,surname,userPrincipalName,id", "HttpMethod": "GET" }

18. Additional concepts Batching Throttling Change notifications Change tracking Schema/Open extensions

19. Conclusion Consistent APIs Think about Auth Shorter delivery time Better apps integration Better user experience

20. THANK YOU Feedback form https://bit.ly/3dcSfSw

21. https://graph.microsoft.com

Add a comment