Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Neelabhra08 opened this issue Nov 11, 2023 · 1 comment

Comments

@Neelabhra08
Copy link

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
Copy link
Author

This issue for clarified: microsoftgraph/msgraph-sdk-dotnet#2211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant