Number of Drives within an organisation(Active Directory)

Test Admin1 1 Reputation point
2022-12-29T05:24:19.503+00:00

Hi @Prasad-MSFT ,

We are trying out the GET drives API :

https://graph.microsoft.com/v1.0/drives

Is it possible that the API will return multiple drives for an organisation? Can a single organisation (AD) have more than one drive IDs?

Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,831 Reputation points
    2023-01-03T01:02:25.12+00:00

    Hello @Test Admin1

    Thanks for reaching out!

    As per my understanding, drive represents a user's OneDrive or a document library in SharePoint. For a licensed user resource, there is only a single drive.
    Multiple drives are common when you are working with resource types other than "user". Using drive resource, you can get a user's OneDrive, Get the document library associated with a group, Get the document library for a site.

    You can refer to driveType resource in API response. It describes the type of drive represented by a resource. OneDrive personal drives will return personal. OneDrive for Business will return business. SharePoint document libraries will return documentLibrary.

    Refer this documentation for more details.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

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