Downloading a file from onedrive business via GraphAPI

Copper Contributor

Hello, i am trying to download a file with Graph Explorer. In the end i will use python, but to get the correct URL i use Graph Explorer.

When i use the file explorer from Microsoft, i can see those directories:

shot1.PNG

 I would like to access them with Graph API but the only thing i can somehow access is the "OneDrive - o(censored)" where the cloud icon is on the left.

When i use https://graph.microsoft.com/v1.0/drives i see one drive "shared documents" but thats not the one i am looking for. 

When i right-click in the folder from which i want to download and select "show online" it opens 

https://ocensored.sharepoint.com/sites/KreisInformatik-Arbeitsdokumente/Freigegebene%20Dokumente/For...

So i thought its a site i need to access and then checked https://graph.microsoft.com/v1.0/sites, but this returns only an empty array - when i use https://graph.microsoft.com/v1.0/sites/ocensored.sharepoint.com/drives it returns me the same result like in /drives

My user can list those folders in explorer and in browser and i am signed in with the same user in the Graph Explorer

0 Replies