際際滷

際際滷Share a Scribd company logo
1
aOS Moscow
9/7/2019
舒亳亠仆亳亠
Microsoft Graph
Vitaly Zhukov
 THANKS TO OUR SPONSORS
2
WebDiamond
亳于亠!
亠仆 亰仂于 亳舒仍亳亶 从仂于
亊 亟舒于仆仂 亰舒仆亳仄舒ム Office 365/SharePoint
亳 仄仆亠 亠 仂 舒从舒亰舒
office365moscow.ru
3
5
Microsoft 365
Windows 10
Device Management (Intune) + SecurityE5E1 E3
Microsoft 365
Phone System
Audio Conferencing
Advanced Threat Protection
Cloud App Security
Advanced eDiscovery
Customer Lockbox
Advanced Data Governance
Service Encryption
Mobile Device Management
Mobile Application Management
Windows Defender SmartScreen
Conditional Access
Information Protection
Threat Protection
7
Microsoft Graph
亠亰 Microsoft Graph
Microsoft Graph
Microsoft Graph
Microsoft Graph
Microsoft Graph
Microsoft Graph. API
https://graph.microsoft.com/{version}/{resource}/{id}/{query}?{parameters}
https://graph.microsoft.com/1.0/users/v.zhukov@contoso.com/events
弌仗亳仂从 仂弍亳亶 仗仂仍亰仂于舒亠仍
https://graph.microsoft.com/1.0/me/joinedTeams
弌仗亳仂从 亞仗仗 Teams 亠从亠亞仂 仗仂仍亰仂于舒亠仍
https://graph.microsoft.com/1.0/users/v.zhukov@contoso.com/planner/tasks
舒亟舒亳 仗仂仍亰仂于舒亠仍 于 Planner
个仂仄舒 亰舒仗仂舒 (GET|POST|PATCH|DELETE)
12
亳仍仂亢亠仆亳 亳 舒于舒
Microsoft Graph. 亳仍仂亢亠仆亳
亳仍仂亢亠仆亳亠 亟仂仗仆仂 于 舒仄从舒 仂亟仆仂亞仂 亠仆舒仆舒
仂仍亳, 舒于舒, 仂仍亳亳从亳
仂仗仆仂 从舒从 亟仍 Azure AD, 舒从 亳 亟仍 仗亠仂仆舒仍仆 Microsoft account
Multi-tenant
Single-tenant
Microsoft Graph. 舒于舒
{Resource}.{Action}.{Scope}
AppCatalog.ReadWrite.All
丼亠仆亳亠 亳 亰舒仗亳 于仂 于亠 从舒舒仍仂亞舒 仗亳仍仂亢亠仆亳亶
仄亠仆仂于舒仆亳亠 仗舒于
Bookings.Manage
丼亠仆亳亠 亳 亰舒仗亳 于亠亟亠仆亳亶 仂 于亠舒, 从仂仄仗舒仆亳, 从仍亳亠仆舒, 仍亢弍舒 亳 仗亠仂仆舒仍亠
Calendars.Read
丼亠仆亳亠 仗仂仍亰仂于舒亠仍从亳 从舒仍亠仆亟舒亠亶
Microsoft Graph. 舒于舒
Delegated Permissions Application Permissions
Delegated
permissions
User
privileges
Application
permissions
Effective Permissions
16
Open Extension
Microsoft Graph. 弌仂亰亟舒仆亳亠 舒亳亠仆亳
{
"@odata.type: "microsoft.graph.openTypeExtension",
"extensionName": "Com.VitalyZhukov.Social",
"Facebook": "http://www.facebook.com/zhukovv",
"Linkedin": "http://ru.linkedin.com/in/zhukovvitaly",
"Twitter": "https://twitter.com/vzhukov86",
"UpdateDate": "2019-07-20T00:00:00.000Z"
}
POST: https://graph.microsoft.com/v1.0/users/user@ms365.tech/extensions
Microsoft Graph. 弍仆仂于仍亠仆亳亠 舒亳亠仆亳
{
"@odata.type: "microsoft.graph.openTypeExtension",
"extensionName": "Com.VitalyZhukov.Social",
"Facebook": "http://www.facebook.com/zhukovv",
"Linkedin": "http://ru.linkedin.com/in/zhukovvitaly",
"Twitter": "https://twitter.com/vzhukov86",
"UpdateDate": "2019-07-20T00:00:00.000Z"
}
PATCH:
https://graph.microsoft.com/v1.0/users/user@ms365.tech/extensions/Com.VitalyZhukov.Social
Microsoft Graph. 丼亠仆亳亠 舒亳亠仆亳
{
"@odata.type: "microsoft.graph.openTypeExtension",
"extensionName": "Com.VitalyZhukov.Social",
"Facebook": "http://www.facebook.com/zhukovv",
"Linkedin": "http://ru.linkedin.com/in/zhukovvitaly",
"Twitter": "https://twitter.com/vzhukov86",
"UpdateDate": "2019-07-20T00:00:00.000Z"
}
GET: https://graph.microsoft.com/v1.0/users/user@ms365.tech/extensions/Com.VitalyZhukov.Social
Microsoft Graph. 丼亠仆亳亠 舒亳亠仆亳
{
"displayName": "Vitaly Zhukov",
"surname": "Zhukov",
"extensions": [{
"@odata.type": "#microsoft.graph.openTypeExtension",
"extensionName": "Com.VitalyZhukov.Social",
"Facebook": "http://www.facebook.com/zhukovv",
"Linkedin": "http://ru.linkedin.com/in/zhukovvitaly",
"Twitter": "https://twitter.com/vzhukov86",
"UpdateDate@odata.type": "#DateTimeOffset",
"UpdateDate": "2019-07-21T00:00:00Z",
"id": "Com.VitalyZhukov.Social"
}]
}
GET: https://graph.microsoft.com/v1.0/users/
?$filter=surname eq 'Zhukov
&$expand=extensions($filter=id eq 'Com.VitalyZhukov.Social')
21
Schema Extension
Graph. 弌仂亰亟舒仆亳亠 舒亳亠仆亳 亠仄
{
"id": "aosextensions",
"description": "Demo extension",
"targetTypes": ["User"],
"owner" : "e41aa88d-385e-4973-9211-7f66bd8930bb",
"properties": [
{"name": "ticketid", "type": "String"},
{"name": "trackid", "type": "Integer"}
]
}
POST: https://graph.microsoft.com/v1.0/schemaExtensions
Graph. 从亳于舒亳 舒亳亠仆亳 亠仄
{
"status": "Available",
"owner" : "e41aa88d-385e-4973-9211-7f66bd8930bb"
}
PATCH: https://graph.microsoft.com/v1.0/schemaExtensions/ext3doh72f4_aosextensions
Graph. 亠亟舒从亳仂于舒仆亳亠 舒亳亠仆亳 亠仄
{
"displayName": "Vitaly Zhukov",
"ext3doh72f4_aosextensions":{
"ticketid": "001",
"trackid": 1
}
}
PATCH: https://graph.microsoft.com/v1.0/users/v.zhukov@ms365.tech
Graph. 丼亠仆亳亠 舒亳亠仆亳 亠仄
{
"id": "d7be6981-f700-4528-9180-9be5276f7a14",
"ext3doh72f4_aosextensions": {
"@odata.type": "#microsoft.graph.ComplexExtensionValue",
"trackid": 1,
"ticketid": "001"
}
}
GET: https://graph.microsoft.com/v1.0/users/v.zhukov@ms365.tech
?$filter=surname eq 'Zhukov'
&$select=ext3doh72f4_aosextensions
26
于仂亟
Microsoft Graph. 舒于舒
Delegated Permissions
 仂仍亠仆亳亠 亟仂仗舒 从 亟舒仆仆仄 仂 亳仄亠仆亳 仗仂仍亰仂于舒亠仍
 Web-仗亳仍仂亢亠仆亳, 仗亳仍仂亢亠仆亳 亟仍 仄仂弍亳仍仆 亟亠于舒亶仂于
Application Permissions
 仂仍亠仆亳亠 亟仂仗舒 从仂 于亠仄 亟舒仆仆仄
 丐仂仍从仂 亟仍 IT-舒亟仄亳仆亳舒仂仂于
Open Extension vs Schema Extension
Open Extension
 亠 亳仗亳亰舒亳亳 于仂亶于
 亠 亠弍亠 仗亳仍仂亢亠仆亳
 亠 亳仄亠亠 舒舒
Schema Extension
 亊于仆舒 亳仗亳亰舒亳 亳 仗亠亠亠仆
于仂亶于
 丐亠弍亠 仗亳仍仂亢亠仆亳亠
于仍舒亟亠仍亠
 弌舒 舒亳亠仆亳
 InDevelopment
 Active
Microsoft Graph. Throttling
HTTP 429 Too Many Requests
 仂于仂仆亶 亰舒仗仂 仂仍从仂 仗仂仍亠 于亠仄亠仆亳, 从舒亰舒仆仆仂亞仂 于 亰舒亞仂仍仂于从亠
Retry-After
 亳 仄舒仂于 仂仗亠舒亳, 429 舒 仄仂亢亠 弍 于亟舒仆 仆舒
从仂仆从亠仆 仂仗亠舒亳, 舒 仆亠 仆舒 于亠 batch
30
弌仗舒亳弍仂 亰舒 于仆亳仄舒仆亳亠!

More Related Content

aOS Moscow - R5 - Extend Microsoft graph to fit your business

  • 2. THANKS TO OUR SPONSORS 2 WebDiamond
  • 3. 亳于亠! 亠仆 亰仂于 亳舒仍亳亶 从仂于 亊 亟舒于仆仂 亰舒仆亳仄舒ム Office 365/SharePoint 亳 仄仆亠 亠 仂 舒从舒亰舒 office365moscow.ru 3
  • 5. Windows 10 Device Management (Intune) + SecurityE5E1 E3 Microsoft 365 Phone System Audio Conferencing Advanced Threat Protection Cloud App Security Advanced eDiscovery Customer Lockbox Advanced Data Governance Service Encryption Mobile Device Management Mobile Application Management Windows Defender SmartScreen Conditional Access Information Protection Threat Protection
  • 10. Microsoft Graph. API https://graph.microsoft.com/{version}/{resource}/{id}/{query}?{parameters} https://graph.microsoft.com/1.0/users/v.zhukov@contoso.com/events 弌仗亳仂从 仂弍亳亶 仗仂仍亰仂于舒亠仍 https://graph.microsoft.com/1.0/me/joinedTeams 弌仗亳仂从 亞仗仗 Teams 亠从亠亞仂 仗仂仍亰仂于舒亠仍 https://graph.microsoft.com/1.0/users/v.zhukov@contoso.com/planner/tasks 舒亟舒亳 仗仂仍亰仂于舒亠仍 于 Planner 个仂仄舒 亰舒仗仂舒 (GET|POST|PATCH|DELETE)
  • 12. Microsoft Graph. 亳仍仂亢亠仆亳 亳仍仂亢亠仆亳亠 亟仂仗仆仂 于 舒仄从舒 仂亟仆仂亞仂 亠仆舒仆舒 仂仍亳, 舒于舒, 仂仍亳亳从亳 仂仗仆仂 从舒从 亟仍 Azure AD, 舒从 亳 亟仍 仗亠仂仆舒仍仆 Microsoft account Multi-tenant Single-tenant
  • 13. Microsoft Graph. 舒于舒 {Resource}.{Action}.{Scope} AppCatalog.ReadWrite.All 丼亠仆亳亠 亳 亰舒仗亳 于仂 于亠 从舒舒仍仂亞舒 仗亳仍仂亢亠仆亳亶 仄亠仆仂于舒仆亳亠 仗舒于 Bookings.Manage 丼亠仆亳亠 亳 亰舒仗亳 于亠亟亠仆亳亶 仂 于亠舒, 从仂仄仗舒仆亳, 从仍亳亠仆舒, 仍亢弍舒 亳 仗亠仂仆舒仍亠 Calendars.Read 丼亠仆亳亠 仗仂仍亰仂于舒亠仍从亳 从舒仍亠仆亟舒亠亶
  • 14. Microsoft Graph. 舒于舒 Delegated Permissions Application Permissions Delegated permissions User privileges Application permissions Effective Permissions
  • 16. Microsoft Graph. 弌仂亰亟舒仆亳亠 舒亳亠仆亳 { "@odata.type: "microsoft.graph.openTypeExtension", "extensionName": "Com.VitalyZhukov.Social", "Facebook": "http://www.facebook.com/zhukovv", "Linkedin": "http://ru.linkedin.com/in/zhukovvitaly", "Twitter": "https://twitter.com/vzhukov86", "UpdateDate": "2019-07-20T00:00:00.000Z" } POST: https://graph.microsoft.com/v1.0/users/user@ms365.tech/extensions
  • 17. Microsoft Graph. 弍仆仂于仍亠仆亳亠 舒亳亠仆亳 { "@odata.type: "microsoft.graph.openTypeExtension", "extensionName": "Com.VitalyZhukov.Social", "Facebook": "http://www.facebook.com/zhukovv", "Linkedin": "http://ru.linkedin.com/in/zhukovvitaly", "Twitter": "https://twitter.com/vzhukov86", "UpdateDate": "2019-07-20T00:00:00.000Z" } PATCH: https://graph.microsoft.com/v1.0/users/user@ms365.tech/extensions/Com.VitalyZhukov.Social
  • 18. Microsoft Graph. 丼亠仆亳亠 舒亳亠仆亳 { "@odata.type: "microsoft.graph.openTypeExtension", "extensionName": "Com.VitalyZhukov.Social", "Facebook": "http://www.facebook.com/zhukovv", "Linkedin": "http://ru.linkedin.com/in/zhukovvitaly", "Twitter": "https://twitter.com/vzhukov86", "UpdateDate": "2019-07-20T00:00:00.000Z" } GET: https://graph.microsoft.com/v1.0/users/user@ms365.tech/extensions/Com.VitalyZhukov.Social
  • 19. Microsoft Graph. 丼亠仆亳亠 舒亳亠仆亳 { "displayName": "Vitaly Zhukov", "surname": "Zhukov", "extensions": [{ "@odata.type": "#microsoft.graph.openTypeExtension", "extensionName": "Com.VitalyZhukov.Social", "Facebook": "http://www.facebook.com/zhukovv", "Linkedin": "http://ru.linkedin.com/in/zhukovvitaly", "Twitter": "https://twitter.com/vzhukov86", "UpdateDate@odata.type": "#DateTimeOffset", "UpdateDate": "2019-07-21T00:00:00Z", "id": "Com.VitalyZhukov.Social" }] } GET: https://graph.microsoft.com/v1.0/users/ ?$filter=surname eq 'Zhukov &$expand=extensions($filter=id eq 'Com.VitalyZhukov.Social')
  • 21. Graph. 弌仂亰亟舒仆亳亠 舒亳亠仆亳 亠仄 { "id": "aosextensions", "description": "Demo extension", "targetTypes": ["User"], "owner" : "e41aa88d-385e-4973-9211-7f66bd8930bb", "properties": [ {"name": "ticketid", "type": "String"}, {"name": "trackid", "type": "Integer"} ] } POST: https://graph.microsoft.com/v1.0/schemaExtensions
  • 22. Graph. 从亳于舒亳 舒亳亠仆亳 亠仄 { "status": "Available", "owner" : "e41aa88d-385e-4973-9211-7f66bd8930bb" } PATCH: https://graph.microsoft.com/v1.0/schemaExtensions/ext3doh72f4_aosextensions
  • 23. Graph. 亠亟舒从亳仂于舒仆亳亠 舒亳亠仆亳 亠仄 { "displayName": "Vitaly Zhukov", "ext3doh72f4_aosextensions":{ "ticketid": "001", "trackid": 1 } } PATCH: https://graph.microsoft.com/v1.0/users/v.zhukov@ms365.tech
  • 24. Graph. 丼亠仆亳亠 舒亳亠仆亳 亠仄 { "id": "d7be6981-f700-4528-9180-9be5276f7a14", "ext3doh72f4_aosextensions": { "@odata.type": "#microsoft.graph.ComplexExtensionValue", "trackid": 1, "ticketid": "001" } } GET: https://graph.microsoft.com/v1.0/users/v.zhukov@ms365.tech ?$filter=surname eq 'Zhukov' &$select=ext3doh72f4_aosextensions
  • 26. Microsoft Graph. 舒于舒 Delegated Permissions 仂仍亠仆亳亠 亟仂仗舒 从 亟舒仆仆仄 仂 亳仄亠仆亳 仗仂仍亰仂于舒亠仍 Web-仗亳仍仂亢亠仆亳, 仗亳仍仂亢亠仆亳 亟仍 仄仂弍亳仍仆 亟亠于舒亶仂于 Application Permissions 仂仍亠仆亳亠 亟仂仗舒 从仂 于亠仄 亟舒仆仆仄 丐仂仍从仂 亟仍 IT-舒亟仄亳仆亳舒仂仂于
  • 27. Open Extension vs Schema Extension Open Extension 亠 亳仗亳亰舒亳亳 于仂亶于 亠 亠弍亠 仗亳仍仂亢亠仆亳 亠 亳仄亠亠 舒舒 Schema Extension 亊于仆舒 亳仗亳亰舒亳 亳 仗亠亠亠仆 于仂亶于 丐亠弍亠 仗亳仍仂亢亠仆亳亠 于仍舒亟亠仍亠 弌舒 舒亳亠仆亳 InDevelopment Active
  • 28. Microsoft Graph. Throttling HTTP 429 Too Many Requests 仂于仂仆亶 亰舒仗仂 仂仍从仂 仗仂仍亠 于亠仄亠仆亳, 从舒亰舒仆仆仂亞仂 于 亰舒亞仂仍仂于从亠 Retry-After 亳 仄舒仂于 仂仗亠舒亳, 429 舒 仄仂亢亠 弍 于亟舒仆 仆舒 从仂仆从亠仆 仂仗亠舒亳, 舒 仆亠 仆舒 于亠 batch