Fix Microsoft Graph List Drives Returning Site-Wide SharePoint Storage
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.

- 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.
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.
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.
Navigate to the official Microsoft Graph Explorer web portal and sign in with your administrator credentials.
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'.
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.
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.

Report the Behavior to the Microsoft Graph Community
If native tools confirm that the API inherently returns the site-wide total for individual drives, escalate your findings to the official Microsoft developer community.
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.

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.




