Skip to main content

List Drives For Site

List drive files for SharePoint site.

  • Least privileged Microsoft Graph permission to access the action via application: Files.Read.All.
  • Higher privileged Microsoft Graph permissions to access the action via application: Sites.ReadWrite.All, Files.ReadWrite.All, Sites.Read.All.
External Documentation

To learn more, visit the SharePoint documentation.

Parameters

ParameterDescription
Site IDThe ID of the site. Can be obtained via the List Sites action.

Example Output

{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives",
"value": [
{
"createdDateTime": "2021-12-12T00:45:15Z",
"description": "",
"id": "b!5a6qd1mkQ0-_89GgMvkvmCZ1234324sdfvqVfbr5Wv4asdfashedrft1Nt1QYB-XEhqCLyq",
"lastModifiedDateTime": "2023-05-14T16:38:04Z",
"name": "Documents",
"webUrl": "https://test.sharepoint.com/Shared%20Documents",
"driveType": "documentLibrary",
"createdBy": {
"user": {
"displayName": "System Account"
}
},
"lastModifiedBy": {
"user": {
"email": "johndoe@test.onmicrosoft.com",
"id": "f166ae1c-f8af-4054-88b9-09fef3040543",
"displayName": "John Doe"
}
},
"owner": {
"group": {
"id": "18c9be3e-2b58-408f-9341-f7ee4f995027",
"displayName": "Global Administrator"
}
},
"quota": {
"deleted": 0,
"remaining": 27487789045691,
"state": "normal",
"total": 27487790694400,
"used": 1648709
}
}
]
}

Workflow Library Example

List Drives for Site with Sharepoint and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop