OneDrive / onedrive-api-docs

Official documentation for the OneDrive API
MIT License
447 stars 228 forks source link

OneDrive API calls doesnot have any provision for Delegated and Apponly authentication types. #1748

Closed Neelabhra08 closed 7 months ago

Neelabhra08 commented 8 months ago

https://graph.microsoft.com/v1.0/drives/Me/items/01J4YTV6BO73AXJWFW3JEZU3DYNCXMCWA7/permanentDelete - This call requires a DriveID which is "Me" here. I bypassed this call by modifying the the request URI - https://graph.microsoft.com/v1.0/me/drive/items/01J4YTV6BO73AXJWFW3JEZU3DYNCXMCWA7/permanentDelete and this works fine.

But cannot find any way around to work with the Apponly access where userID is needed as https://graph.microsoft.com/v1.0/{userID}/drive/items/01J4YTV6BO73AXJWFW3JEZU3DYNCXMCWA7/permanentDelete isn't working.

The main goal is to not do a extra call for fetching the driveId to execute OneDrive calls. Can anyone help with these please.

Neelabhra08 commented 7 months ago

This issue for clarified: https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2211