We are building an app in Java to download and upload files from a Sharepoint Site using the Microsoft Graph SDK.
As we want the application to interact only with a Sharepoint Site, we created an Application Id with:
- Roles: read and write
- Permission: Site.Selected
Although we are able to create a new folder with this setup, we are receiving a access denied error when trying to download a file.
Below you can see a snapshot of our code.

Please let me know if you need any more information to help solve this bug