sharedInsight resource type

Namespace: microsoft.graph

An insight representing files shared with or by a specific user. The following shared files are supported:

  • Files attached directly in an email or a meeting invite.
  • OneDrive for Business and SharePoint modern attachments - files stored in OneDrive for Business and SharePoint that users share as a links in an email.

Note: We are currently working on populating the results of the Shared API with data. There may be some data missing in the first weeks after release.


Method Return Type Description
List shared sharedInsight collection Get a list of shared files.


Property Type Description
id String Unique identifier of the relationship. Read only.
lastShared sharingDetail Details about the shared item. Read only.
resourceReference resourceReference Reference properties of the shared document, such as the url and type of the document. Read-only
resourceVisualization resourceVisualization Properties that you can use to visualize the document in your experience. Read-only


Property Type Description
resource entity collection Used for navigating to the item that was shared. For file attachments, the type is fileAttachment. For linked attachments, the type is driveItem.

JSON representation

Here is a JSON representation of the resource

  "id": "string",
  "lastShared": "sharingDetail",
  "resourceVisualization": "resourceVisualization",
  "resourceReference": "resourceReference",
  "resource": [ { "@odata.type": "microsoft.graph.entity" } ]