Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 3.44 KB

File metadata and controls

64 lines (47 loc) · 3.44 KB
title sharedInsight resource type
description An insight representing files shared with or by a specific user. The following shared files are supported:
author simonhult
ms.localizationpriority medium
ms.subservice insights
doc_type resourcePageType
ms.date 03/12/2024

sharedInsight resource type

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

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.

Methods

Method Return Type Description
List shared (deprecated) sharedInsight collection Get a list of shared files. This API is deprecated and will stop returning data after November 2026.

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

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" } ]
}