List shared

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.

Calculated insight that includes the list of documents shared with a user.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Sites.Read.All, Sites.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application Sites.Read.All, Sites.ReadWrite.All

HTTP request

Get a list of documents shared with the signed-in user.

Note: Only the user can make requests using the user's id or principal name.

GET /me/insights/shared
GET /users/{id | userPrincipalName}/insights/shared

Expand the resource referenced by a shared insight:


Optional query parameters

This method supports the OData Query Parameters to help customize the response.

You can use the $filter query parameter to filter shared items. For example, based on type:$filter=ResourceVisualization/Type eq 'PowerPoint'

See the available container types and types you can filter by in resourceVisualization.

You can also retrieve files shared by a specific user. For example, by specifying the lastshared/sharedby/address property:$filter=lastshared/sharedby/address eq ''

See the sharingDetail complex type.

Request headers

Header Value
Authorization Bearer {token}. Required.
Accept application/json

Request body

Do not supply a request body for this method.


If successful, this method returns a 200 OK response code and a list of shared items in the response body.



Here is an example of the request.



Here is an example of the response. Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-type: application/json

    "value": [
            "id": "AWb0Qy4TEA1KhLW-k1L5mSjtxZAcxDFkTKiTNA-2kZDTXzrMX_4FhECOU0bKZVj1uReivYoYYoJNqTeuC-x1Agtm9EMuExANSoS1vpNS-ZkoBA",
            "lastShared": {
                "sharedDateTime": "2021-03-23T08:41:05Z",
                "sharingType": "Direct",
                "sharedBy": {
                    "displayName": "Megan Bowen",
                    "address": "",
                    "id": "3e0c9f05-b9b8-4cf5-9b35-a4e11b24b5b7"
                "sharingReference": {}
            "resourceVisualization": {
                "title": "CE Annual Report",
                "type": "Word",
                "mediaType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                "previewImageUrl": "!ZvRDLhMQDUqEtb6TUvmZKO3FkBzEMWRMqJM0D7aRkNNfOsxf_gWEQI5TRsplWPW5/items/01K6ZMU4QXUK6YUGDCQJG2SN5OBPWHKAQL/thumbnails/0/small/thumbnailContent",
                "previewText": "Contoso Annual Report Anne Wallace Sales Contoso today announced financial results for its most recent fi",
                "containerWebUrl": "",
                "containerDisplayName": "Megan Bowen",
                "containerType": "OneDriveBusiness"
            "resourceReference": {
                "webUrl": "",
                "id": "drives/b!ZvRDLhMQDUqEtb6TUvmZKO3FkBzEMWRMqJM0D7aRkNNfOsxf_gWEQI5TRsplWPW5/items/01K6ZMU4QXUK6YUGDCQJG2SN5OBPWHKAQL",
                "type": "microsoft.graph.driveItem"