> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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`.

<Note>
  External Documentation

  To learn more, visit the [SharePoint documentation](https://learn.microsoft.com/en-us/graph/api/drive-list?view=graph-rest-1.0\&tabs=http#list-a-sites-drives).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                      |
  | --------- | ---------------------------------------------------------------- |
  | Site ID   | The ID of the site. Can be obtained via the `List Sites` action. |
</div>

## Example Output

```json theme={"dark"}
{
	"@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](https://library.blinkops.com/workflows/list-drives-for-site-with-sharepoint-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-drives-for-site-with-sharepoint-and-send-results-via-email/canvas" />
</div>
