Download - Building solutions with Office Graph
![Page 1: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/1.jpg)
Building solutions with Office Graph
Waldek Mastykarz
(MVP)
Albert-Jan Schot (MVP)
![Page 2: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/2.jpg)
Recent changes• Apps for SharePoint• Apps for Office• Azure AD apps/My apps
• SharePoint Add-ins• Office Add-ins• Web applications
![Page 3: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/3.jpg)
It’s a preview*
![Page 4: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/4.jpg)
Delve vs Office Graph
DelveAn application pivoting on the data in the Office GraphCurrently only web based
Office GraphBased on Search/FASTMachine Learning techniques that connects you to relevant dataAn API
![Page 5: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/5.jpg)
Delve Web
![Page 6: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/6.jpg)
Delve Mobile Apps
![Page 7: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/7.jpg)
Delve, Privacy and the Office Graph• It’s Search it’s security trimmed!• Relations in the Office Graph
− Public or Private
• Trending stuff− Need at least five (5) interactions before trending
• What about a sensitive documents trending in Delve?− Prohibit Search from index the document library or site − Hide documents from delve. Managed Property called HideFromDelve.
−See: sharepointappie.nl/go/HideFromDelve
![Page 8: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/8.jpg)
Terminology• Actor
− Source Node in the Office Graph− Represented by the DocId of the item in the search index (or ME)
• Object− Target Node in the Office Graph− Represented by the DocId of the item in the search index
• Edge− Relationship/interaction between the Actor and Object− Has a Action type, a Weight, a timestamp and a few more properties
• Action type− The type of action the Edge represents
Actor
Object
EdgeKatiej
Letter.docxviewed
![Page 9: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/9.jpg)
Action typesTypes• Simple
−Modified, viewed
• Computed−Trending, working with
• Structural−Manager, colleagues
Privacy• Public
−Modified, colleagues
• Private−Viewed, working with
![Page 10: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/10.jpg)
DEMO
![Page 11: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/11.jpg)
Office Graph query options
JSOM
• AuthN not required
• KeywordQuery()
CSOM
• AuthN required
• KeywordQuery()
SDK
• AuthN required
• Office 365 API/Unified API
• .NET, Android, iOS
• Currently no support for Office Graph
REST
• AuthN: it depends
• ANY platform
• ANY kind of solution
![Page 12: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/12.jpg)
Unified API query comparisonSharePoint Search API:GET https://contoso.sharepoint.com/_api/search/query?QueryText=’*'&Properties=‘GraphQuery:actor(me\,action\:1021)’&RankingModelId='0c77ded8-c3ef-466d-929d-905670ea1d72'&RowLimit=10&ClientType=’ContosoWebApp’
vs.
Unified API:GET https://graph.microsoft.com/beta/me/trendingAround
![Page 13: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/13.jpg)
Office Graph and OAuth• Supported by
− SharePoint Add-ins− Office Add-ins, web applications & mobile apps
• Requires delegated permissions− SharePoint Add-ins:
Search QueryAsUserIgnoreAppPrincipal
•Missing permissions no result− Office Add-ins, web applications and mobile apps:
Office 365 SharePoint Online Run file search queries as a user
•Missing permissions 403 unauthorized error
![Page 14: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/14.jpg)
DEMOs
![Page 15: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/15.jpg)
Next steps
• Get familiar with developer opportunities for the Office
Graph:
dev.office.com/officegraph
• Provide feedback:
sharepointappie.nl/go/UserVoiceOfficeGraph
• More information and sample solutions:
mavention.com/office-graph
• Download Mavention Office Graph Add-ins:
sharepointappie.nl/go/OfficeGraphAddIns/
• Register for Unity Connect and see us present a custom
NextGen portal
unityconnect.com/amsterdam
![Page 16: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/16.jpg)
Ask-me-anything
Albert-Jan Schot−SharePoint MVP−Mavention−@appieschot−sharepointappie.nl
Waldek Mastykarz
−SharePoint MVP−Mavention−@waldekm−blog.mastykarz.nl
![Page 17: Building solutions with Office Graph](https://reader030.vdocuments.us/reader030/viewer/2022032506/55c982bcbb61eb0a068b4778/html5/thumbnails/17.jpg)
THANK YOU