building solutions with office graph

17
Building solutions with Office Graph Waldek Mastykarz (MVP) Albert-Jan Schot (MVP)

Upload: mavention

Post on 11-Aug-2015

499 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Building solutions with Office Graph

Building solutions with Office Graph

Waldek Mastykarz

(MVP)

Albert-Jan Schot (MVP)

Page 2: Building solutions with Office Graph

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

It’s a preview*

Page 4: Building solutions with Office Graph

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

Delve Web

Page 6: Building solutions with Office Graph

Delve Mobile Apps

Page 7: Building solutions with Office Graph

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

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

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

DEMO

Page 11: Building solutions with 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

Page 12: Building solutions with Office Graph

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

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

DEMOs

Page 15: Building solutions with Office Graph

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

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

THANK YOU