shared resource type

Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.

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 Bussiness 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.

Methods

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

Properties

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

Relationships

Property Type Description
resource Entity 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" } ]
}