Retrieve all available drives for OneDrive

John Civijovski 1 Reputation point
2021-04-15T09:48:28.757+00:00

I'm building the iOS app that allows users to upload their data to OneDrive. Currently it has access to default drive by /me/drive endpoint. But some of the user's demand ability to upload their files to the shared drives in their company account. I first tried /me/drives, but it returns only default one, which is from the first endpoint, though the account I use for testing has items shared with it, and they are displayed in the browser version of OneDrive. I also tried /sites/root/list, but it returned objects, that, as I understood, not what I need.

For all requests I use iOS OneDrive SDK from GitHub and MSAL pod for authentication, also double check in the Graph Explorer, but the responses are the same.

The permissions/scopes are: "https://graph.microsoft.com/Files.ReadWrite.All", "https://graph.microsoft.com/User.Read", "https://graph.microsoft.com/Directory.ReadWrite.All".

Can anyone please advice, what endpoint should I use for retrieving list of company shared drives and possible what permissions/scopes should I use or modify existing?

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,339 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 27,471 Reputation points Microsoft Vendor
    2021-04-19T02:04:11.77+00:00

    Hi @John Civijovski ,
    I suggest you try to post this issue to OneDrive for Developer forum:

    https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/OneDriveDeveloper

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


    If the response 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.