Now I got the access token with scope "Files.ReadWrite.All" and generated IGraphServiceClient.
But I could only upload files to onedrive for business.When I uploaded files to personal onedrive,it catched an exception with message "Request failed with error, retry if necessary.".
Expected behavior
IGraphServiceClient could upload files both worked in onedrive for business and personal onedrive.
Actual behavior
Only worked in onedrive for business.
Steps to reproduce the behavior