I want to get all private folders(and files) for all users in one drive for business using REST API.
I got access token for https://mydomain-my.sharepoint.com using administrator account.
Now I am trying to get all private folders for all users using the below URL
I am able to get the list of files to the user whose credentials I used to get the access token.
But when I tried for any other user, I get only the files the user has shared.
How to get all the private folders of an user using REST API?
Any help would be appreciated