I want to upload and download files to an organization one drive. What is the API for this. As of now, I find the API to get driveID of a user and not the driveID of the organization.
I want to upload and download files to an organization one drive. What is the API for this. As of now, I find the API to get driveID of a user and not the driveID of the organization.
Hi anonymous users-6549,
What did you mean organization one drive? Do you mean that a library in SharePoint sites?
If so, you could get the drive by the site path: GET /sites/{hostname}:/{server-relative-path}:/drive
For example, your site url is https://tenant.sharepoint.com/sites/test, you could get the url with the endpoint:
https://graph.microsoft.com/v1.0/sites/tenant.sharepoint.com:/sites/test:/drive
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi anonymous users-6549,
Is there any update for your issue? Have you tried the endpoint?
I am willing to hear from you.
5 people are following this question.
Hide lists for the Sharepoint site: Limit access to PowerApps only
Sharepoint Online Search error with CSOM
Sharepoint online - copy files programmatically
Sharepoint - Unable to Filter Views Based On Responsible Party (Email)
Error deploying SPFx Library component solution package with webApiPermissionRequests