Permissions for /me/drive/recent

Nalin Singal 1 Reputation point
2020-10-10T08:22:39.54+00:00

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?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,923 questions
{count} votes

2 answers

Sort by: Most helpful
  1. 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

    0 comments No comments

  2. Nalin Singal 1 Reputation point
    2020-10-12T06:31:24.21+00:00

    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>.

    0 comments No comments