SharePoint Document Issues

Fix Microsoft Graph List Drives Returning Site-Wide SharePoint Storage

Muhammad TalhaMuhammad Talha Nov 2, 2026 868 views

Question details

The user needs to resolve an issue where querying Microsoft Graph API for SharePoint drives returns the aggregate storage of the entire site rather than the usage for each specific document library.

How to Fix Microsoft Graph List Drives Returning Site-Wide SharePoint Storage
Product
Microsoft Graph API
Device & OS
not provided
Scenario
Querying storage data for individual SharePoint document libraries using the List Drives Graph API endpoint.
Observed behavior
The API endpoint returns identical used_size_in_bytes values for multiple document libraries, reflecting the total site-wide storage usage instead of the individual drive usage.
Before you start

Ensure you have the necessary administrator permissions to access Microsoft Graph Explorer and the target SharePoint site's storage metrics to compare API results with actual usage.

Solution 1Recommended

Troubleshoot the Endpoint using Microsoft Graph Explorer

Test the API call natively in Microsoft Graph Explorer to isolate whether the issue is specific to your application code or a broader Microsoft service behavior.

Verifying the API request in Graph Explorer helps determine if the behavior is isolated to a specific environment, a specific API version, or a universal limitation of the current endpoint.

1
Open Graph Explorer

Navigate to the official Microsoft Graph Explorer web portal and sign in with your administrator credentials.

2
Execute the List Drives Query

Set the request method to GET and enter your endpoint URL (e.g., https://graph.microsoft.com/v1.0/sites/{site-id}/drives). Click 'Run query'.

3
Analyze Storage Values

Review the JSON response and check the 'used_size_in_bytes' attribute for each returned drive to see if they all output the same site-wide total.

4
Test the Beta Endpoint

Change the API version in the URL from 'v1.0' to 'beta' and run the query again to see if the beta endpoint provides document library-specific storage metrics.

Troubleshoot the Endpoint using Microsoft Graph Explorer
Known API Aggregation: If the issue persists across both v1.0 and beta endpoints, it is highly likely a service-level behavior where Graph API aggregates storage at the site level by design.
Free Microsoft Office alternative

Streamline Your Document Management with WPS Office

While troubleshooting SharePoint integrations and Graph API behaviors, consider WPS Office as a lightweight, highly compatible alternative for everyday document handling. It supports seamless editing of all standard Office files without heavy infrastructure requirements.

Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight installation with fast loading times and smooth performance.Free all-in-one suite for viewing, editing, and managing your essential documents.Familiar user interface requiring no steep learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft Graph API show the same storage size for all SharePoint document libraries?

This commonly occurs when the API returns the aggregated total storage used by the entire SharePoint site rather than the isolated usage for a single document library or drive, which is a known service behavior.

Does using the beta endpoint of Graph API fix the storage size issue?

Testing the beta endpoint can sometimes yield updated behaviors. However, if it still returns the site-wide storage capacity, it indicates an ongoing service-level API limitation rather than a version-specific bug.

Where can I find the actual storage usage for a specific SharePoint document library?

You can manually check library-specific storage by navigating to your SharePoint Site Settings, selecting Storage Metrics, and viewing the detailed breakdown for each individual document library.