I have built a asp.net app that successfully accesses o365 exchange with an App Only Token and Graph. I am now trying to access a specific user's OneDrive for Business files with the same token and a Get request similar to the following:

https://mycomp-my.sharepoint.com/_api/v2.0/drives/simon@mycomp.com/items

but I get the following error:

3001000;reason='There has been an error authenticating the request.';category='invalid_client'

Any idea what is the cause of the error?

Related posts

Recent Viewed