In order to get Sharepoint or OneDrive for Business connected to the Team Files via oAuth 2.0, make sure you have this permissions allowed.
API/Permissions name | Type | Description | Admin Consent Required |
---|---|---|---|
Microsoft Graph | |||
| Delegated | Have full access to all files user can access | No |
| Delegated | Create, edit, and delete items and lists in all site collections | No |
| Delegated | Sign in and read user profile | No |
Sharepoint | |||
| Delegated | Read and write items and lists in all site collections | No |
| Delegated | Read and write user files | No |