question

Sols-6549 avatar image
0 Votes"
Sols-6549 asked MichaelHan-MSFT edited

What is the api to get the drive ID for an organization without specifying the username

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.

office-sharepoint-onlinesharepoint-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered MichaelHan-MSFT commented

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi anonymous users-6549,

Is there any update for your issue? Have you tried the endpoint?
I am willing to hear from you.

0 Votes 0 ·