ESC
Type to search...

Files.Read

Export JSON
Export CSV
Copy URL
Print
Delegated Read User Scope

Allows the app to read the signed-in user's files.

Permission data: April 6, 2026 at 4:06 AM UTC
Delegated Access App-Only Access

Permission Details

Delegated Permission User consent allowed

Read user files

Allows the app to read the signed-in user's files.

Properties

Microsoft Graph v1.0 mapped-docs

Properties is shown from stable Microsoft Graph v1.0 metadata.

Property Type Description
audio [audio][] Audio metadata, if the item is an audio file. Read-only. Read-only. Only on OneDrive Personal.
bundle [bundle][] Bundle metadata, if the item is a bundle. Read-only.
content StreamNullable The content stream, if the item represents a file.
createdBy [identitySet][] Identity of the user, device, and application that created the item. Read-only.
createdDateTime DateTimeOffset Date and time of item creation. Read-only.
cTag StringNullable An eTag for the content of the item. This eTag isn't changed if only the metadata is changed. Note This property isn't returned if the item is a folder. Read-only.
deleted [deleted][] Information about the deleted state of the item. Read-only.
description StringNullable Provides a user-visible description of the item. Read-write. Only on OneDrive Personal.
eTag StringNullable eTag for the entire item (metadata + content). Read-only.
file [file][] File metadata, if the item is a file. Read-only.
fileSystemInfo [fileSystemInfo][] File system information on client. Read-write.
folder [folder][] Folder metadata, if the item is a folder. Read-only.
id String The unique identifier of the item within the Drive. Read-only.
image [image][] Image metadata, if the item is an image. Read-only.
lastModifiedBy [identitySet][] Identity of the user, device, and application that last modified the item. Read-only.

Showing 15 of 45 properties.

JSON Representation

Microsoft Graph v1.0 mapped-docs

JSON representation is shown from stable Microsoft Graph v1.0 metadata.

JSON representation
{
  "audio": { "@odata.type": "microsoft.graph.audio" },
  "bundle": { "@odata.type": "microsoft.graph.bundle" },
  "content": { "@odata.type": "Edm.Stream" },
  "cTag": "string (etag)",
  "deleted": { "@odata.type": "microsoft.graph.deleted"},
  "description": "string",
  "file": { "@odata.type": "microsoft.graph.file" },
  "fileSystemInfo": { "@odata.type": "microsoft.graph.fileSystemInfo" },
  "folder": { "@odata.type": "microsoft.graph.folder" },
  "image": { "@odata.type": "microsoft.graph.image" },
  "location": { "@odata.type": "microsoft.graph.geoCoordinates" },
  "malware": { "@odata.type": "microsoft.graph.malware" },
  "package": { "@odata.type": "microsoft.graph.package" },
  "pendingOperations": { "@odata.type": "microsoft.graph.pendingOperations" },
  "photo": { "@odata.type": "microsoft.graph.photo" },
  "publication": {"@odata.type": "microsoft.graph.publicationFacet"},
  "remoteItem": { "@odata.type": "microsoft.graph.remoteItem" },
  "root": { "@odata.type": "microsoft.graph.root" },
  "searchResult": { "@odata.type": "microsoft.graph.searchResult" },
  "shared": { "@odata.type": "microsoft.graph.shared" },
  "sharepointIds": { "@odata.type": "microsoft.graph.sharepointIds" },
  "size": 1024,
  "specialFolder": { "@odata.type": "microsoft.graph.specialFolder" },
  "video": { "@odata.type": "microsoft.graph.video" },
  "webDavUrl": "string",

  /* relationships */
  "activities": [{"@odata.type": "microsoft.graph.itemActivity"}],
  "analytics": {"@odata.type": "microsoft.graph.itemAnalytics"},
  "children": [{ "@odata.type": "microsoft.graph.driveItem" }],
  "createdByUser": { "@odata.type": "microsoft.graph.user" },
  "retentionLabel": { "@odata.type": "microsoft.graph.itemRetentionLabel" },
  "lastModifiedByUser": { "@odata.type": "microsoft.graph.user" },
  "permissions": [ {"@odata.type": "microsoft.graph.permission"} ],
  "subscriptions": [ {"@odata.type": "microsoft.graph.subscription"} ],
  "thumbnails": [ {"@odata.type": "microsoft.graph.thumbnailSet"}],
  "versions": [ {"@odata.type": "microsoft.graph.driveItemVersion"}],

  /* inherited from baseItem */
  "createdBy": {"@odata.type": "microsoft.graph.identitySet"},
  "createdDateTime": "String (timestamp)",
  "eTag": "string",
  "id": "string (identifier)",
  "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)",
  "name": "string",
  "parentReference": {"@odata.type": "microsoft.graph.itemReference"},
  "webUrl": "string",

  /* instance annotations */
  "@microsoft.graph.conflictBehavior": "string",
  "@microsoft.graph.downloadUrl": "url",
  "@microsoft.graph.sourceUrl": "url"
}

Relationships

Microsoft Graph v1.0 mapped-docs

Relationships is shown from stable Microsoft Graph v1.0 metadata.

Relationship Type Description
activities [itemActivity][] collection The list of recent activities that took place on this item.
analytics [itemAnalytics][] resource Analytics about the view activities that took place on this item.
children driveItem collection Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable.
createdByUser [user][] Identity of the user who created the item. Read-only.
lastModifiedByUser [user][] Identity of the user who last modified the item. Read-only.
listItem [listItem][] For drives in SharePoint, the associated document library list item. Read-only. Nullable.
permissions [permission][] collection The set of permissions for the item. Read-only. Nullable.
retentionLabel [itemRetentionLabel][] Information about retention label and settings enforced on the driveItem. Read-write.
subscriptions [subscription][] collection The set of subscriptions on the item. Only supported on the root of a drive.
thumbnails [thumbnailSet][] collection Collection of [thumbnailSet][] objects associated with the item. For more information, see [getting thumbnails][]. Read-only. Nullable.
versions [driveItemVersion][] collection The list of previous versions of the item. For more info, see [getting previous versions][]. Read-only. Nullable.
workbook [workbook][] For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable.
photo object Photo metadata, if the item is a photo. Read-only.
extensions extension collection The collection of open extensions defined for this item. Nullable.

Graph Methods

Delegated access App-only access
Exact Microsoft Learn match

Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
GET /drive/bundles
GET /drive/bundles/{bundle-id}
GET /drive/items/{bundle-id}
GET /drive/items/{item-id}/content?format={format}
GET /drive/root:/{path and filename}:/content?format={format}
GET /drives/{drive-id}/items/{item-id}
GET /drives/{drive-id}/items/{item-id}/analytics/allTime
GET /drives/{drive-id}/items/{item-id}/analytics/lastSevenDays
GET /drives/{drive-id}/items/{item-id}/children
GET /drives/{drive-id}/items/{item-id}/content
GET /drives/{drive-id}/items/{item-id}/getActivitiesByInterval(startDateTime={startDateTime},endDateTime={endDateTime},interval={interval})
GET /drives/{drive-id}/items/{item-id}/permissions
GET /drives/{drive-id}/items/{item-id}/permissions/{perm-id}
GET /drives/{drive-id}/items/{item-id}/thumbnails
GET /drives/{drive-id}/items/{item-id}/versions
GET /drives/{drive-id}/items/{item-id}/versions/{version-id}
GET /drives/{drive-id}/items/{item-id}/versions/{version-id}/content
GET /drives/{drive-id}/root:/{item-path}
GET /drives/{drive-id}/root/delta
GET /drives/{drive-id}/root/search(q='{search-text}')
GET /drives/{driveId}/list/subscriptions/socketIo
GET /drives/{driveId}/root/subscriptions/socketIo
GET /groups/{group-id}/drive/items/{item-id}
GET /groups/{group-id}/drive/items/{item-id}/children
GET /groups/{group-id}/drive/items/{item-id}/content
GET /groups/{group-id}/drive/items/{item-id}/permissions
GET /groups/{group-id}/drive/items/{item-id}/permissions/{perm-id}
GET /groups/{group-id}/drive/items/{item-id}/thumbnails
GET /groups/{group-id}/drive/items/{item-id}/versions
GET /groups/{group-id}/drive/items/{item-id}/versions/{version-id}
GET /groups/{group-id}/drive/items/{item-id}/versions/{version-id}/content
GET /groups/{group-id}/drive/root:/{item-path}
GET /groups/{group-id}/drive/root/search(q='{search-text}')
GET /groups/{groupId}/drive
GET /groups/{groupId}/drive/root/delta
GET /groups/{groupId}/drive/root/subscriptions/socketIo
GET /groups/{groupId}/drives
GET /me/drive
GET /me/drive/following
GET /me/drive/items/{id}/workbook/tables
GET /me/drive/items/{id}/workbook/worksheets/{id|name}/names
GET /me/drive/items/{item-id}
GET /me/drive/items/{item-id}/children
GET /me/drive/items/{item-id}/content
GET /me/drive/items/{item-id}/permissions
GET /me/drive/items/{item-id}/permissions/{perm-id}
GET /me/drive/items/{item-id}/thumbnails
GET /me/drive/items/{item-id}/versions
GET /me/drive/items/{item-id}/versions/{version-id}
GET /me/drive/items/{item-id}/versions/{version-id}/content
GET /me/drive/recent
GET /me/drive/root:/{item-path}
GET /me/drive/root:/{item-path}:/content
GET /me/drive/root:/{item-path}:/workbook/tables
GET /me/drive/root:/{item-path}:/workbook/worksheets/{id|name}/names
GET /me/drive/root:/{path}:/permissions
GET /me/drive/root/delta
GET /me/drive/root/search(q='{search-text}')
GET /me/drive/root/subscriptions/socketIo
GET /me/drive/special/{name}
GET /me/drives
GET /shares/{shareIdOrEncodedSharingUrl}/driveItem/content
GET /sites/{site-id}/analytics/allTime
GET /sites/{site-id}/analytics/lastSevenDays
GET /sites/{site-id}/drive/items/{item-id}
GET /sites/{site-id}/drive/items/{item-id}/children
GET /sites/{site-id}/drive/items/{item-id}/permissions/{perm-id}
GET /sites/{site-id}/drive/items/{item-id}/thumbnails
GET /sites/{site-id}/drive/items/{item-id}/versions
GET /sites/{site-id}/drive/items/{item-id}/versions/{version-id}
GET /sites/{site-id}/drive/items/{item-id}/versions/{version-id}/content
GET /sites/{site-id}/drive/root:/{item-path}
GET /sites/{site-id}/drive/root/search(q='{search-text}')
GET /sites/{site-id}/getActivitiesByInterval(startDateTime={startDateTime},endDateTime={endDateTime},interval={interval})
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/analytics/allTime
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/analytics/lastSevenDays
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/driveItem
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/getActivitiesByInterval(startDateTime={startDateTime},endDateTime={endDateTime},interval={interval})
GET /sites/{siteId}/drive
GET /sites/{siteId}/drive/items/{item-id}/content
GET /sites/{siteId}/drive/items/{itemId}/permissions
GET /sites/{siteId}/drive/root/delta
GET /sites/{siteId}/drives
GET /sites/{siteId}/lists/{listId}/drive/root/subscriptions/socketIo
GET /teams/{id}/channels/{id}/filesFolder
GET /users/{idOrUserPrincipalName}/drive
GET /users/{user-id | userPrincipalName}/drive/items/{item-id}
GET /users/{user-id | userPrincipalName}/drive/items/{item-id}/children
GET /users/{user-id | userPrincipalName}/drive/root:/{item-path}
GET /users/{user-id | userPrincipalName}/drive/root/search(q='{search-text}')
GET /users/{user-id}/drive/items/{item-id}/permissions/{perm-id}
GET /users/{user-id}/drive/items/{item-id}/thumbnails
GET /users/{user-id}/drive/items/{item-id}/versions
GET /users/{user-id}/drive/items/{item-id}/versions/{version-id}
GET /users/{user-id}/drive/items/{item-id}/versions/{version-id}/content
GET /users/{userId | userPrincipalName}/drive/root/delta
GET /users/{userId}/drive/items/{item-id}/content
GET /users/{userId}/drive/items/{itemId}/permissions
GET /users/{userId}/drives
POST /drives/{drive-id}/items/{item-id}/follow
POST /drives/{driveId}/items/{itemId}/preview
POST /groups/{group-id}/drive/items/{item-id}/follow
POST /groups/{groupId}/drive/items/{itemId}/preview
POST /me/drive/items/{item-id}/follow
POST /me/drive/items/{item-id}/unfollow
POST /me/drive/items/{itemId}/preview
POST /shares/{shareId}/driveItem/preview
POST /sites/{site-id}/drive/items/{item-id}/follow
POST /sites/{siteId}/drive/items/{itemId}/preview
POST /users/{user-id}/drive/items/{item-id}/follow
POST /users/{user-id}/drive/items/{item-id}/unfollow
POST /users/{userId}/drive/items/{itemId}/preview
DELETE /me/drive/following/{item-id}
DELETE /users/{user-id}/drive/following/{item-id}
Exact Microsoft Learn match

Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
GET /drive/bundles
GET /drive/bundles/{bundle-id}
GET /drive/items/{bundle-id}
GET /drive/items/{item-id}/content?format={format}
GET /drive/root:/{path and filename}:/content?format={format}
GET /drives/{drive-id}/activities
GET /drives/{drive-id}/items/{item-id}
GET /drives/{drive-id}/items/{item-id}/activities
GET /drives/{drive-id}/items/{item-id}/analytics
GET /drives/{drive-id}/items/{item-id}/children
GET /drives/{drive-id}/items/{item-id}/content
GET /drives/{drive-id}/items/{item-id}/contentStream
GET /drives/{drive-id}/items/{item-id}/getActivitiesByInterval(startDateTime={startDateTime},endDateTime={endDateTime},interval={interval})
GET /drives/{drive-id}/items/{item-id}/permissions
GET /drives/{drive-id}/items/{item-id}/permissions/{perm-id}
GET /drives/{drive-id}/items/{item-id}/thumbnails
GET /drives/{drive-id}/items/{item-id}/versions
GET /drives/{drive-id}/items/{item-id}/versions/{version-id}
GET /drives/{drive-id}/items/{item-id}/versions/{version-id}/content
GET /drives/{drive-id}/root:/{item-path}
GET /drives/{drive-id}/root/delta
GET /drives/{drive-id}/root/search(q='{search-text}')
GET /drives/{driveId}
GET /drives/{driveId}/list/subscriptions/socketIo
GET /drives/{driveId}/root/subscriptions/socketIo
GET /groups/{group-id}/drive/items/{item-id}
GET /groups/{group-id}/drive/items/{item-id}/children
GET /groups/{group-id}/drive/items/{item-id}/content
GET /groups/{group-id}/drive/items/{item-id}/contentStream
GET /groups/{group-id}/drive/items/{item-id}/permissions
GET /groups/{group-id}/drive/items/{item-id}/permissions/{perm-id}
GET /groups/{group-id}/drive/items/{item-id}/thumbnails
GET /groups/{group-id}/drive/items/{item-id}/versions
GET /groups/{group-id}/drive/items/{item-id}/versions/{version-id}
GET /groups/{group-id}/drive/items/{item-id}/versions/{version-id}/content
GET /groups/{group-id}/drive/root:/{item-path}
GET /groups/{group-id}/drive/root/search(q='{search-text}')
GET /groups/{groupId}/drive
GET /groups/{groupId}/drive/root/delta
GET /groups/{groupId}/drive/root/subscriptions/socketIo
GET /groups/{groupId}/drives
GET /me/drive
GET /me/drive/following
GET /me/drive/items/{id}/workbook/worksheets/{id|name}/names
GET /me/drive/items/{item-id}
GET /me/drive/items/{item-id}/children
GET /me/drive/items/{item-id}/content
GET /me/drive/items/{item-id}/contentStream
GET /me/drive/items/{item-id}/permissions
GET /me/drive/items/{item-id}/permissions/{perm-id}
GET /me/drive/items/{item-id}/thumbnails
GET /me/drive/items/{item-id}/versions
GET /me/drive/items/{item-id}/versions/{version-id}
GET /me/drive/items/{item-id}/versions/{version-id}/content
GET /me/drive/recent
GET /me/drive/root:/{item-path}
GET /me/drive/root:/{item-path}:/content
GET /me/drive/root:/{item-path}:/contentStream
GET /me/drive/root:/{item-path}:/workbook/worksheets/{id|name}/names
GET /me/drive/root:/{path}:/permissions
GET /me/drive/root/delta
GET /me/drive/root/search(q='{search-text}')
GET /me/drive/root/subscriptions/socketIo
GET /me/drive/special/{name}
GET /me/drives
GET /me/settings/storage/quota
GET /me/settings/storage/quota/services
GET /me/settings/storage/quota/services/{serviceStorageQuotaBreakdownId}
GET /shares/{shareIdOrEncodedSharingUrl}/driveItem/content
GET /shares/{shareIdOrEncodedSharingUrl}/driveItem/contentStream
GET /sites/{site-id}/analytics
GET /sites/{site-id}/drive/items/{item-id}/children
GET /sites/{site-id}/drive/items/{item-id}/permissions/{perm-id}
GET /sites/{site-id}/drive/items/{item-id}/thumbnails
GET /sites/{site-id}/drive/items/{item-id}/versions
GET /sites/{site-id}/drive/items/{item-id}/versions/{version-id}
GET /sites/{site-id}/drive/items/{item-id}/versions/{version-id}/content
GET /sites/{site-id}/drive/root/search(q='{search-text}')
GET /sites/{site-id}/getActivitiesByInterval(startDateTime={startDateTime},endDateTime={endDateTime},interval={interval})
GET /sites/{site-id}/lists/{list-id}/activities
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/activities
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/analytics
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/getActivitiesByInterval(startDateTime={startDateTime},endDateTime={endDateTime},interval={interval})
GET /sites/{siteId}/drive
GET /sites/{siteId}/drive/items/{item-id}/content
GET /sites/{siteId}/drive/items/{item-id}/contentStream
GET /sites/{siteId}/drive/items/{itemId}
GET /sites/{siteId}/drive/items/{itemId}/permissions
GET /sites/{siteId}/drive/root:/{item-path}
GET /sites/{siteId}/drive/root/delta
GET /sites/{siteId}/drives
GET /sites/{siteId}/lists/{listId}/drive/root/subscriptions/socketIo
GET /sites/{siteId}/recycleBin/items
GET /teams/{id}/channels/{id}/filesFolder
GET /teams/{teamId}/channels/{channelId}/filesFolder
GET /users/{idOrUserPrincipalName}/drive
GET /users/{user-id | userPrincipalName}/drive/items/{item-id}/children
GET /users/{user-id | userPrincipalName}/drive/root/search(q='{search-text}')
GET /users/{user-id}/drive/items/{item-id}/permissions/{perm-id}
GET /users/{user-id}/drive/items/{item-id}/thumbnails
GET /users/{user-id}/drive/items/{item-id}/versions
GET /users/{user-id}/drive/items/{item-id}/versions/{version-id}
GET /users/{user-id}/drive/items/{item-id}/versions/{version-id}/content
GET /users/{user-id}/settings/storage/quota
GET /users/{userId | userPrincipalName}/drive/items/{item-id}
GET /users/{userId | userPrincipalName}/drive/root:/{item-path}
GET /users/{userId | userPrincipalName}/drive/root/delta
GET /users/{userId}/drive/items/{item-id}/content
GET /users/{userId}/drive/items/{item-id}/contentStream
GET /users/{userId}/drive/items/{itemId}/permissions
GET /users/{userId}/drives
GET /users/{usersId}/settings/storage/quota/services
GET /users/{usersId}/settings/storage/quota/services/{serviceStorageQuotaBreakdownId}
POST /drive/bundles/{driveItemId}/archive
POST /drive/bundles/{driveItemId}/unarchive
POST /drive/following/{driveItemId}/archive
POST /drive/following/{driveItemId}/unarchive
POST /drive/items/{driveItemId}/archive
POST /drive/items/{driveItemId}/unarchive
POST /drive/root/archive
POST /drive/root/unarchive
POST /drive/special/{driveItemId}/archive
POST /drive/special/{driveItemId}/unarchive
POST /drives/{drive-id}/items/{item-id}/follow
POST /drives/{driveId}/items/{itemId}/preview
POST /drives/{drivesId}/items/{driveItemId}/archive
POST /drives/{drivesId}/items/{driveItemId}/unarchive
POST /drives/{drivesId}/root/archive
POST /drives/{drivesId}/root/unarchive
POST /groups/{group-id}/drive/items/{item-id}/follow
POST /groups/{groupId}/drive/items/{itemId}/preview
POST /me/drive/items/{item-id}/follow
POST /me/drive/items/{item-id}/unfollow
POST /me/drive/items/{itemId}/preview
POST /shares/{shareId}/driveItem/preview
POST /shares/{sharesId}/driveItem/archive
POST /shares/{sharesId}/driveItem/unarchive
POST /shares/{sharesId}/root/archive
POST /shares/{sharesId}/root/unarchive
POST /sites/{site-id}/drive/items/{item-id}/follow
POST /sites/{siteId}/drive/items/{itemId}/preview
POST /users/{user-id}/drive/items/{item-id}/follow
POST /users/{user-id}/drive/items/{item-id}/unfollow
POST /users/{userId}/drive/items/{itemId}/preview
DELETE /me/drive/following/{item-id}
DELETE /users/{user-id}/drive/following/{item-id}
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
Get-MgDriveBundle /drive/bundles
List bundles
Get-MgDriveBundle /drive/bundles/{bundle-id}
Get bundle
Get-MgDriveFollowing /me/drive/following
List followed items
Get-MgDriveItem /drive/bundles/{bundle-id}
Get bundle
Get-MgDriveItemAnalyticTime /drives/{drive-id}/items/{item-id}/analytics/allTime
Get itemAnalytics
Get-MgDriveItemChild /drives/{drive-id}/items/{item-id}/children
List children of a driveItem
Get-MgDriveItemChild /drives/{drive-id}/items/{item-id}/thumbnails
List thumbnails for a DriveItem
Get-MgDriveItemContent /drive/items/{item-id}/content?format={format}
Download a file in another format
Get-MgDriveItemContent /drives/{drive-id}/items/{item-id}/content
Download driveItem content
Get-MgDriveItemDelta /drives/{drive-id}/root/delta
driveItem: delta
Get-MgDriveItemPermission /drives/{drive-id}/items/{item-id}/permissions
List sharing permissions on a driveItem
Get-MgDriveItemPermission /drives/{drive-id}/items/{item-id}/permissions/{perm-id}
Get sharing permission for a file or folder
Get-MgDriveItemSubscription /me/drive/root/subscriptions/socketIo
Get websocket endpoint
Get-MgDriveItemThumbnail /drives/{drive-id}/items/{item-id}/thumbnails
List thumbnails for a DriveItem
Get-MgDriveItemVersion /drives/{drive-id}/items/{item-id}/versions
List versions
Get-MgDriveItemVersion /drives/{drive-id}/items/{item-id}/versions/{version-id}
Get driveItemVersion
Get-MgDriveItemVersionContent /drives/{drive-id}/items/{item-id}/versions/{version-id}/content
Download contents of a driveItemVersion resource
Get-MgDriveRoot /drives/{drive-id}/items/{item-id}
Get driveItem
Get-MgDriveSpecial /me/drive/special/{name}
Get a special folder by name
Get-MgTeamChannelFileFolder /teams/{id}/channels/{id}/filesFolder
Get filesFolder
Get-MgUserDefaultDrive /me/drive
Get drive
Get-MgUserDrive /groups/{groupId}/drives
List available drives
Invoke-MgFollowDriveItem /drives/{drive-id}/items/{item-id}/follow
Follow drive item
Invoke-MgRecentDrive /me/drive/recent
drive: recent (deprecated)
Invoke-MgUnfollowDriveItem /me/drive/following/{item-id}
Unfollow drive item
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
Get-MgBetaDriveActivity /drives/{drive-id}/activities
List activities (preview)
Get-MgBetaDriveBundle /drive/bundles
List bundles
Get-MgBetaDriveFollowing /me/drive/following
List followed items
Get-MgBetaDriveItemActivityByInterval /drives/{drive-id}/items/{item-id}/getActivitiesByInterval(startDateTime={startDateTime},endDateTime={endDateTime},interval={interval})
Get item activity stats by interval
Get-MgBetaDriveItemAnalytic /drives/{drive-id}/items/{item-id}/analytics
Get analytics
Get-MgBetaDriveItemChild /drives/{drive-id}/items/{item-id}/children
List children of a driveItem
Get-MgBetaDriveItemChild /drives/{drive-id}/items/{item-id}/thumbnails
List thumbnails for a driveItem
Get-MgBetaDriveItemContent /drive/items/{item-id}/content?format={format}
Download a file in another format
Get-MgBetaDriveItemContent /drives/{drive-id}/items/{item-id}/content
Download driveItem content
Get-MgBetaDriveItemContentStream /drives/{drive-id}/items/{item-id}/contentStream
Get file by contentStream
Get-MgBetaDriveItemDelta /drives/{drive-id}/root/delta
driveItem: delta
Get-MgBetaDriveItemPermission /drives/{drive-id}/items/{item-id}/permissions
List sharing permissions on a driveItem
Get-MgBetaDriveItemPermission /drives/{drive-id}/items/{item-id}/permissions/{perm-id}
Get sharing permission for a file or folder
Get-MgBetaDriveItemSubscription /me/drive/root/subscriptions/socketIo
Get websocket endpoint
Get-MgBetaDriveItemThumbnail /drives/{drive-id}/items/{item-id}/thumbnails
List thumbnails for a driveItem
Get-MgBetaDriveItemVersion /drives/{drive-id}/items/{item-id}/versions
List versions
Get-MgBetaDriveItemVersion /drives/{drive-id}/items/{item-id}/versions/{version-id}
Get driveItemVersion
Get-MgBetaDriveItemVersionContent /drives/{drive-id}/items/{item-id}/versions/{version-id}/content
Download contents of a driveItemVersion resource
Get-MgBetaDriveRoot /drives/{drive-id}/items/{item-id}
Get driveItem
Get-MgBetaDriveSpecial /me/drive/special/{name}
Get a special folder by name
Get-MgBetaTeamChannelFileFolder /teams/{id}/channels/{id}/filesFolder
Get filesFolder
Get-MgBetaUserDefaultDrive /me/drive
Get drive
Get-MgBetaUserDrive /groups/{groupId}/drives
List available drives
Get-MgBetaUserSettingStorageQuota /me/settings/storage/quota
Get unifiedStorageQuota
Get-MgBetaUserSettingStorageQuotaService /me/settings/storage/quota/services
List serviceStorageQuotaBreakdown
Get-MgBetaUserSettingStorageQuotaService /me/settings/storage/quota/services/{serviceStorageQuotaBreakdownId}
Get serviceStorageQuotaBreakdown
Get-MgDriveBundle /drive/bundles/{bundle-id}
Get bundle
Get-MgDriveItem /drive/bundles/{bundle-id}
Get bundle
Invoke-MgBetaFollowDriveItem /drives/{drive-id}/items/{item-id}/follow
Follow drive item
Invoke-MgBetaRecentDrive /me/drive/recent
drive: recent (deprecated)
Invoke-MgBetaUnfollowDriveItem /me/drive/following/{item-id}
Unfollow drive item

Code Examples

C# / .NET SDK
Download a file in another format
// Code snippets are only available for the latest version. Current version is 5.x

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Drives["{drive-id}"].Items["{driveItem-id}"].Content.GetAsync((requestConfiguration) =>
{
	requestConfiguration.QueryParameters.Format = "{format}";
});
JavaScript
Download a file in another format
const options = {
	authProvider,
};

const client = Client.init(options);

let stream = await client.api('/me/drive/items/{item-id}/content?format={format}')
	.get();
PowerShell
Download a file in another format
Import-Module Microsoft.Graph.Files

Get-MgDriveItemContent -DriveId $driveId -DriveItemId $driveItemId -Format "{format}"
Python
Download a file in another format
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.drives.item.items.item.content.content_request_builder import ContentRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
query_params = ContentRequestBuilder.ContentRequestBuilderGetQueryParameters(
		format = "{format}",
)

request_configuration = RequestConfiguration(
query_parameters = query_params,
)

await graph_client.drives.by_drive_id('drive-id').items.by_drive_item_id('driveItem-id').content.get(request_configuration = request_configuration)

App Registration

1

Navigate to Azure Portal

Go to App registrations in Microsoft Entra admin center

2

Add API Permission

Select your app → API permissions → Add a permission → Microsoft Graph

3

Select Permission Type

Choose Delegated permissions and search for Files.Read

4

Grant Admin Consent

Users can consent to this permission during sign-in.