Share via

Graph APi Files.ReadWrite.All does not exist on a resource

Anonymous
2022-09-12T12:58:38.387+00:00

Hi,
I have registered an app on azure, like I did already before, and already have admin consent for all scopes, however scope Files.ReadWrite.All (application, not delegated) creates an issue.

When I try to obtain a code using:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={my_client_id}&scope=openid offline_access Files.ReadWriteAll&response_type=code&redirect_uri={my_redir_uri}

a response from graph says: Files.ReadWrite.All does not exist on the resource.

Recently (couple a month ago) I did exactly the same fro another client, and then all worked fine, no issues.
I have traversed all answers on docs, and stackoverflow, but nothing helps clear out response.

Anyone knows what is going on with graph?

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph

Answer accepted by question author

Rob Windsor 2,006 Reputation points
2022-09-12T14:51:55.057+00:00

If you look at the URI in your question, you have Files.ReadWriteAll as a scope, not Files.ReadWrite.All. That is, the period is missing between ReadWrite and All.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2022-09-13T09:02:02.997+00:00

    Rob, thanks for catching that one, I owe you few drinks at least!

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.