2. aOS Lille
2 décembre 2016
The Graph is the glue that holds
everything together
@RickVanRousselt
3. aOS Lille 2 décembre 2016
Rick Van Rousselt
Rivaro Consultancy
Currently focussed on Office 365 and
Azure
Email : rick.vanrousselt@outlook.com
rickvanrousselt
4. aOS Lille 2 décembre 2016
Agenda
Intro
Cool Stuff
Authentication
Let’s rock
18. aOS Lille 2 décembre 2016
What can it do?
•Access Data
/me, /groups, /messages, /drive
•Traversing Data
/drive/items/<id>/lastModifiedByUser/
•Give Insights
/insights/trending
20. aOS Lille 2 décembre 2016
Authentication
ADAL
Active Directory Authentication Library
• Production ready
• Only Azure AD
• Scoping done in beginning
MSAL
Microsoft Authentication library
• Still in preview
• Different identity platforms
• Azure AD
• Live accounts
• AD B2C
• Incremental consent
22. aOS Lille 2 décembre 2016
Your application requests an
authorization code with which
your application can then request
the access token for the desired
resource in Azure AD.
25. aOS Lille 2 décembre 2016
Users
• GET /users/<id | userPrincipalName> (Get a user)
• DELETE /users/<id | userPrincipalName> (Delete a user)
• PATCH /users/<id | userPrincipalName> (Update a user)
• POST /users (Create a user)
26. aOS Lille 2 décembre 2016
Mail
• GET /users/<id | userPrincipalName>/messages (Get all mails)
• POST /users/<id | userPrincipalName>/messages (Create a mail)
• GET /me/messages/<id> (Get a single mail)
• DELETE /me/messages/<id> (Delete a mail)
• POST /me/messages/<id>/reply (Reply to a mail)
• GET /me/messages/<id>/attachments (Work with attachments)
27. aOS Lille 2 décembre 2016
Drive (OneDrive and Groups)
• GET /me/drive/items/{item-id} (Get an item)
• PATCH /me/drive/items/{item-id} (Update an item)
• DELETE /me/drive/items/{item-id} (Delete an item)
• GET /me/drive/items/{item-id}/content (Download an item)
Items
• GET /me/drive (Get my OneDrive)
• GET /groups/{id}/drives (Get a Group Site Collection)
• GET /me/drive/root/children (Get items in the root)
• GET /me/drive/sharedWithMe (Files shared with me)
28. aOS Lille 2 décembre 2016
Excel Rest API
• GET /workbook/tables (Get all the tables in a workbook)
• GET /workbook/worksheets (Get all the worksheets in a workbook)
• POST /workbook/worksheets(<id|name>)/Range (Get range values)
• GET /workbook/worksheets(<id|name>)/charts(<name>) (Get a
chart)
30. aOS Lille 2 décembre 2016
Currently in beta
• Tasks
• OneNote
• SharePoint
• Org Hierarchy
• Azure AD Privileged Identity Management
• Azure AD Identity Protection