I have an application that uses MS Graph. The registered application has all these rights: enter image description here
The problem is that I get an error.
If I add User.Read then it works, but based on the documentation it should work with Sites.ReadWrite.All
Graph explorer works OK but inspecting the token, it well has User.Read.
Thanks
It should work with the default permissions.
If you're encountering an error when trying to access SharePoint files using Microsoft Graph with the Sites.ReadWrite.All permission, it's possible that there could be a few reasons for this issue.