...
Add Graph API -> Application permissions -> Files.Read.All and Sites.Read.All
NOTE: If you require the use of Sites.Selected instead of Sites.Read.All see the following article: Set Sites.Selected permissions
...
Grant all permissions by going to Enterprise applications :
...