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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,705 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,883 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 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