Skip to content

[Extensibility Request]: Add DriveId overloads for SharePoint Graph Client drive item operations #9739

Description

@diederiklensink

Describe the issue

The SharePoint Graph Client currently exposes a mix of DriveId-aware and default-drive-only operations.
The following methods already support targeting a specific drive:

  • GetDrive()
  • UploadFile()
  • UploadLargeFile()
  • CreateFolder()
    However, most drive item operations only work against the site's default drive (e.g. DownloadFile() or DeleteItem()). This makes it difficult to work with SharePoint sites containing multiple document libraries.

Expected behavior

Drive item operations should expose overloads that allow callers to explicitly work against a specific DriveId, similar to the existing UploadFile(), UploadLargeFile() and CreateFolder() APIs.

Steps to reproduce

  1. Create a SharePoint site containing multiple document libraries.
  2. Retrieve a non-default drive using GetDrives().
  3. Upload content to the non-default drive using UploadFile(DriveId, ...).
  4. Attempt to perform follow-up operations such as DownloadFile() or ItemExists() against the same drive.

The current API only exposes default-drive implementations for many drive item operations, making it impossible to continue working with the non-default drive through the SharePoint Graph Client.

Additional context

No response

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    ApprovedThe issue is approvedIntegrationGitHub request for Integration area

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions