Closed Neelabhra08 closed 7 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.
This issue for clarified: https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2211
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.