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

Zoran K 21 Reputation points
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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,823 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,932 questions
{count} votes

Accepted answer
  1. Rob Windsor 1,961 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.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Zoran K 21 Reputation points
    2022-09-13T09:02:02.997+00:00

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

    0 comments No comments

Your answer

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