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

Lists the items in a drive.

* **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/driveitem-list-children?view=graph-rest-1.0\&tabs=http).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter          | Description                                                                                                       |
  | ------------------ | ----------------------------------------------------------------------------------------------------------------- |
  | Item ID            | The ID of an item inside the chosen entity, for which to list contained items. Leave as 'root' to list all items. |
  | Parent Entity ID   | User, group or site ID depending on the chosen Entity Type.                                                       |
  | Parent Entity Type | The type of target for which to list items.                                                                       |
</div>

## Example Output

```json theme={"dark"}
{
	"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('48d31887-5fad-4d73-a9f5-3c356e68a038')/drive/items('root')/children",
	"value": [
		{
			"createdDateTime": "2017-07-31T18:56:29Z",
			"eTag": "\"{60F36ED0-85CE-4771-B349-E671C691EFCA},1\"",
			"id": "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36K",
			"lastModifiedDateTime": "2017-07-31T18:56:29Z",
			"name": "Attachments",
			"webUrl": "https://m365x214355-my.sharepoint.com/personal/meganb_m365x214355_onmicrosoft_com/Documents/Attachments",
			"cTag": "\"c:{60F36ED0-85CE-4771-B349-E671C691EFCA},0\"",
			"size": 0,
			"createdBy": {
				"user": {
					"email": "MeganB@M365x214355.onmicrosoft.com",
					"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
					"displayName": "Megan Bowen"
				}
			},
			"lastModifiedBy": {
				"user": {
					"email": "MeganB@M365x214355.onmicrosoft.com",
					"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
					"displayName": "Megan Bowen"
				}
			},
			"parentReference": {
				"driveType": "business",
				"driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
				"id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
				"path": "/drive/root:"
			},
			"fileSystemInfo": {
				"createdDateTime": "2017-07-31T18:56:29Z",
				"lastModifiedDateTime": "2017-07-31T18:56:29Z"
			},
			"folder": {
				"childCount": 0
			},
			"specialFolder": {
				"name": "attachments"
			}
		},
		{
			"createdDateTime": "2017-08-07T16:16:30Z",
			"eTag": "\"{A9D9C2AC-FF32-42EE-87C3-283CFCE061E1},1\"",
			"id": "01BYE5RZ5MYLM2SMX75ZBIPQZIHT6OAYPB",
			"lastModifiedDateTime": "2017-08-07T16:16:30Z",
			"name": "Business Data",
			"webUrl": "https://m365x214355-my.sharepoint.com/personal/meganb_m365x214355_onmicrosoft_com/Documents/Business%20Data",
			"cTag": "\"c:{A9D9C2AC-FF32-42EE-87C3-283CFCE061E1},0\"",
			"size": 39566226,
			"createdBy": {
				"user": {
					"email": "MeganB@M365x214355.onmicrosoft.com",
					"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
					"displayName": "Megan Bowen"
				}
			},
			"lastModifiedBy": {
				"user": {
					"email": "MeganB@M365x214355.onmicrosoft.com",
					"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
					"displayName": "Megan Bowen"
				}
			},
			"parentReference": {
				"driveType": "business",
				"driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
				"id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
				"path": "/drive/root:"
			},
			"fileSystemInfo": {
				"createdDateTime": "2017-08-07T16:16:30Z",
				"lastModifiedDateTime": "2017-08-07T16:16:30Z"
			},
			"folder": {
				"childCount": 6
			}
		}
	]
}
```

## Workflow Library Example

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