What other permissions do you have on the token? I seem to be able to make the call successfully when all the permissions are on the token but it fails when I only have "User.Read.All" and "Files.ReadWrite.All". But that token is able to make calls to user APIs like /me and /users/<userid>.
Permissions for /me/drive/recent
I want to get the recent files for a user and am trying to use the /me/drive/recent API. The docs suggest that Files.ReadWrite.All should be sufficient permission for this but I get a 403 error on that call with a token that only has "User.Read.All" and "Files.ReadWrite.All".
Can someone please clarify what permissions are needed?
2 answers
Sort by: Newest
-
-
Jarbas Horst 6 Reputation points MVP
2020-10-11T19:10:58.587+00:00 Hello @Nalin Singal
I've not been able to reproduce the reported issue? I was able to retrieve the recent files using a token that has the delegated permission "Files.ReadWrite.All". If I change the permissions to "Files.Read.All" only, it still works.
Can you please provide more information about the issue?
Regards
Jarbas Horst