'Get user's OneDrive ID using MSGraph Api
I'm trying to connect to the MSGraph API to get the user's drive ID but the server keeps saying
There has been an error authenticating the request
I've already ensured my token asks for the necessary permissions, but I just can't get the API to return what I need.
The endpoint I'm trying to call is
https://graph.microsoft.com/v1.0/users/{user_id}/drive
The permissions I'm including in the token are
Files.Read Files.Read.All Files.ReadWrite Files.ReadWrite.All Sites.Read.All
Sites.ReadWrite.All User.Read User.ReadBasic.All profile openid email
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|