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

Retrieve the list of Drive resources available for a target User, Group, or 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 [OneDrive documentation](https://learn.microsoft.com/en-us/graph/api/drive-list?view=graph-rest-1.0\&tabs=http).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter   | Description                                                 |
  | ----------- | ----------------------------------------------------------- |
  | Entity ID   | User, group or site ID depending on the chosen Entity Type. |
  | Entity Type | The type of target for which to retrieve available drives.  |
</div>

## Example Output

```json theme={"dark"}
{
	"@odata.context": "<string>",
	"value": [
		{
			"createdDateTime": "2017-07-27T02:41:36Z",
			"description": "",
			"id": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
			"lastModifiedDateTime": "2018-03-27T07:34:38Z",
			"name": "OneDrive",
			"webUrl": "https://m365x214355-my.sharepoint.com/personal/meganb_m365x214355_onmicrosoft_com/Documents",
			"driveType": "business",
			"createdBy": {
				"user": {
					"displayName": "System Account"
				}
			},
			"lastModifiedBy": {
				"user": {
					"displayName": "Megan Bowen"
				}
			},
			"owner": {
				"group": {
					"email": "<string>",
					"id": "<string>",
					"displayName": "<string>"
				}
			},
			"quota": {
				"deleted": 0,
				"remaining": 1099291766677,
				"state": "normal",
				"total": 1099511627776,
				"used": 219861099
			}
		}
	]
}
```

## Workflow Library Example

[List Drives with Onedrive and Send Results Via Email](https://library.blinkops.com/workflows/list-drives-with-onedrive-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-with-onedrive-and-send-results-via-email/canvas" />
</div>
