sharedInsight resource type

Namespace: microsoft.graph


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

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 work or school and SharePoint modern attachments - files stored in OneDrive for work or school and SharePoint that users share as a links in an email.

Note: We're currently working on populating the results of the Shared API with data. Some data might be 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.
resourceVisualization resourceVisualization Properties that you can use to visualize the document in your experience. Read-only
resourceReference resourceReference Reference properties of the shared document, such as the url and type of the document. Read-only


Relationship 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

The following JSON representation shows the resource type.

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