Building Solutions with the
Office Graph
Waldek Mastykarz
SharePoint Server MVP
Mavention
Actor
Object
Action
Edge
Terminology
Actor ObjectEdgeKatiej Letter.docxviewed
Action types
Types Privacy
It’s Search  it’s security trimmed!
Relations in the Office Graph
Hide content
Delve, Privacy and the Office Graph
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
SharePoint Search
https://spevent001.sharepoint.com/_api/search/query?Querytext='*'&Properti
es='GraphQuery:actor(me,action:1021)'&RankingModelId='0c77ded8-c3ef-
466d-929d-905670ea1d72'&ClientType='spevent001'
Unified API
https://graph.microsoft.com/beta/me/trendingAround
Querying the Office Graph
Supported by
Requires delegated permissions
Search  QueryAsUserIgnoreAppPrincipal
no result
Office 365 SharePoint Online  Run file search queries as a user
403 unauthorized error
Office Graph and OAuth
Developer opportunities for the Office Graph:
dev.office.com/officegraph
Start coding
Provide feedback: buff.ly/1O8xaa1
More information and sample solutions: buff.ly/1iR0V37
Mavention Office Graph Add-ins: buff.ly/1OLRS0U
Next steps
Building solutions with the Office Graph (Unity Connect Amsterdam 2015)

Building solutions with the Office Graph (Unity Connect Amsterdam 2015)

Editor's Notes

  • #5 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 Action The type of action the Edge represents Edge Relationship/interaction between the Actor and Object Has a Action type, a Weight, a timestamp and a few more properties
  • #10 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