Shared resource type
Namespace: microsoft.graph
Important
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.
The Shared resource indicates a DriveItem has been shared with others. The resource includes information about how the item is shared.
If a Driveitem has a non-null shared facet, the item has been shared.
JSON representation
{
"owner": { "@odata.type": "microsoft.graph.identitySet" },
"scope": "anonymous | organization | users",
"sharedBy": { "@odata.type": "microsoft.graph.identitySet" },
"sharedDateTime": "datetime"
}
Properties
Property | Type | Description |
---|---|---|
owner | IdentitySet | The identity of the owner of the shared item. Read-only. |
scope | String | Indicates the scope of how the item is shared: anonymous , organization , or users . Read-only. |
sharedBy | identitySet | The identity of the user who shared the item. Read-only. |
sharedDateTime | DateTimeOffset | The UTC date and time when the item was shared. Read-only. |
Scope values
Value | Description |
---|---|
anonymous |
The item is shared by using a link that works for anyone with the link. |
organization |
The item is shared by using a link that works for anyone in the owner's organization. |
users |
The item is shared with specific users only. |
Remarks
For more information about the facets on a driveItem, see driveItem.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for