Lists.SelectedOperations.Selected
Allow the application to access a subset of lists without a signed in user. The specific lists and the permissions granted will be configured in SharePoint Online.
Permission Details
Access selected Lists without a signed in user.
Allow the application to access a subset of lists without a signed in user. The specific lists and the permissions granted will be configured in SharePoint Online.
23c5a9bd-d900-4ecf-be26-a0689755d9e5
Access selected Lists, on behalf of the signed-in user
Allow the application to access a subset of lists on behalf of the signed in user. The specific lists and the permissions granted will be configured in SharePoint Online.
033b51ee-d6fa-4add-b627-ee680c7212b5
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
createdBy |
[identitySet][] |
Identity of the user, device, or application which created the item. Read-only. |
createdDateTime |
dateTimeOffset |
Date and time of item creation. Read-only. |
description |
StringNullable |
Provide a user-visible description of the drive. Read-write. |
driveType |
StringNullable |
Describes the type of drive represented by this resource. OneDrive personal drives return personal. OneDrive for Business returns business. SharePoint document libraries return documentLibrary. Read-only. |
id |
String |
The unique identifier of the drive. Read-only. |
lastModifiedBy |
[identitySet][] |
Identity of the user, device, and application which last modified the item. Read-only. |
lastModifiedDateTime |
dateTimeOffset |
Date and time the item was last modified. Read-only. |
name |
stringNullable |
The name of the item. Read-write. |
owner |
identitySet |
Optional. The user account that owns the drive. Read-only. |
quota |
quota |
Optional. Information about the drive's storage space quota. Read-only. |
sharepointIds |
[sharepointIds][] |
Returns identifiers useful for SharePoint REST compatibility. Read-only. This property isn't returned by default and must be selected using the $select query parameter. |
system |
[systemFacet][] |
If present, indicates that it's a system-managed drive. Read-only. |
webUrl |
string (url)Nullable |
URL that displays the resource in the browser. Read-only. |
bundles |
driveItem collection |
Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. |
createdByUser |
object |
Identity of the user who created the item. Read-only. |
Showing 15 of 24 properties.
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"createdBy": {"@odata.type": "microsoft.graph.identitySet"},
"createdDateTime": "string (timestamp)",
"description": "string",
"driveType": "personal | business | documentLibrary",
"following": [{"@odata.type": "microsoft.graph.driveItem"}],
"id": "string",
"items": [{"@odata.type": "microsoft.graph.driveItem"}],
"lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
"lastModifiedDateTime": "string (timestamp)",
"name": "string",
"owner": {"@odata.type": "microsoft.graph.identitySet"},
"quota": {"@odata.type": "microsoft.graph.quota"},
"root": {"@odata.type": "microsoft.graph.driveItem"},
"sharepointIds": {"@odata.type": "microsoft.graph.sharepointIds"},
"special": [{"@odata.type": "microsoft.graph.driveItem"}],
"system": {"@odata.type": "microsoft.graph.systemFacet"},
"webUrl": "string",
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
bundles |
[driveItem][] collection |
Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. |
following |
[driveItem][] collection |
The list of items the user is following. Only in OneDrive for Business. |
items |
[driveItem][] collection |
All items contained in the drive. Read-only. Nullable. |
list |
[list][] |
For drives in SharePoint, the underlying document library list. Read-only. Nullable. |
root |
[driveItem][] |
The root folder of the drive. Read-only. |
special |
[driveItem][] collection |
Collection of common folders available in OneDrive. Read-only. Nullable. |
owner |
object |
Optional. The user account that owns the drive. Read-only. |
activities |
itemActivityOLD collection |
The list of recent activities that took place under this drive. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new Permission
{
GrantedToV2 = new SharePointIdentitySet
{
Application = new Identity
{
Id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e",
},
},
Roles = new List<string>
{
"write",
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Drives["{drive-id}"].Items["{driveItem-id}"].Permissions.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const permission = {
grantedToV2: {
application: {
id: '89ea5c94-7736-4e25-95ad-3fa95f62b66e'
}
},
roles: ['write']
};
await client.api('/drives/b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop/items/01V4EPHZNV2OJQJNBPWNCKDTXCQ5TSVBJU/permissions')
.post(permission);
Import-Module Microsoft.Graph.Files
$params = @{
grantedToV2 = @{
application = @{
id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e"
}
}
roles = @(
"write"
)
}
New-MgDriveItemPermission -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.permission import Permission
from msgraph.generated.models.share_point_identity_set import SharePointIdentitySet
from msgraph.generated.models.identity import Identity
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = Permission(
granted_to_v2 = SharePointIdentitySet(
application = Identity(
id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e",
),
),
roles = [
"write",
],
)
result = await graph_client.drives.by_drive_id('drive-id').items.by_drive_item_id('driveItem-id').permissions.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for Lists.SelectedOperations.Selected
Grant Admin Consent
Application permissions always require admin consent.