Currently, the Microsoft OneDrive node only supports writing files to the personal drive (i.e., /me/drive
). This works well for basic use cases, but fails when working with:
- Shared drives
- SharePoint document libraries
- Group drives (e.g., Microsoft 365 Groups)
- Drives of other users (admin access)
The Microsoft Graph API supports writing to these via the following endpoints:
PUT /drives/{drive-id}/items/{item-id}/content
PUT /groups/{group-id}/drive/items/{item-id}/content
PUT /me/drive/items/{item-id}/content
PUT /sites/{site-id}/drive/items/{item-id}/content
PUT /users/{user-id}/drive/items/{item-id}/content
(Upload small files - Microsoft Graph v1.0 | Microsoft Learn)
It would be nice if we could specify one of these alternative contexts by letting us provide a driveId
, groupId
, siteId
, or userId
.
It is possible to augment this feature by using the HTTP Request Node - but that is not so convenient for sure.