| 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 | 04/03/2024 |
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 (deprecated) | sharedInsight collection | Get a list of shared files. This API is deprecated and will stop returning data after November 2026. |
| 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. |
The following JSON representation shows the resource type.
{
"id": "string",
"lastShared": "sharingDetail",
"resourceVisualization": "resourceVisualization",
"resourceReference": "resourceReference",
"resource": [ { "@odata.type": "microsoft.graph.entity" } ]
}