How to Fix Incorrect SharePoint Site IDs and URLs in the Microsoft Graph API
Question details
The Microsoft Graph getSharePointSiteUsageDetail report returns repeated zero-value site IDs or identical incorrect URLs for multiple sites, pointing to a potential reporting issue.

- Product
- Microsoft Graph API
- Device & OS
- not provided
- Scenario
- Retrieving SharePoint site usage details via the Microsoft Graph API for administration or reporting purposes.
- Observed behavior
- The API returns repeated zero-value site IDs or the exact same incorrect URL for multiple distinct SharePoint sites.
Before proceeding, ensure you have the required Reports.Read.All permissions and verify that your API request URL is properly formatted for the desired reporting period.
Verify API Request Parameters and Compare Results
Rule out configuration or syntax errors in your Graph API request before concluding that the issue is a backend reporting defect.
Sometimes, malformed queries or incorrect API versions can cause unexpected behavior in the data returned by the Microsoft Graph API. It is important to cross-reference the API output with the actual data in the Admin Center.
Review your API call to ensure you are using the correct endpoint (v1.0 or beta) and that your period or date parameters for the getSharePointSiteUsageDetail query are properly formatted.
Navigate to the Microsoft Entra ID (Azure AD) portal and confirm that the application or delegated user executing the query has been granted the required Reports.Read.All permissions.
Log into the SharePoint admin center with your admin credentials. Navigate to the Reports section and view the Site Usage data manually to determine if the zero-value IDs or incorrect URLs also appear in the UI.

Escalate to Microsoft 365 Support
If your API request is configured perfectly but the data remains incorrect, you will need to open a support ticket to investigate a backend reporting defect.
Manage Your Daily Documents Seamlessly with WPS Office
While managing complex backend services like Microsoft Graph API requires administrative tools, you don't need heavy setups for your everyday document tasks. WPS Office is a free, lightweight, and highly compatible alternative for handling your Word documents, Excel spreadsheets, and PowerPoint presentations.
- 1. Download the Installer: Navigate to the official WPS Office website and click the Free Download button.
- 2. Install WPS Office: Run the downloaded installation file and follow the simple on-screen instructions.
- 3. Open Your Files: Launch WPS Office and instantly open your existing Microsoft Office documents without any formatting loss.

Frequently Asked Questions
Why does the Microsoft Graph API return zero-value IDs for SharePoint sites?
Zero-value site IDs can be returned due to backend data synchronization delays, privacy settings that anonymize user-level data in Microsoft 365, or temporary reporting defects within the Graph API infrastructure.
What permissions are required to run the getSharePointSiteUsageDetail report?
To run this report, the calling application or user must be granted the Reports.Read.All permission in Microsoft Entra ID (formerly Azure AD) by an administrator.
How do I find my Microsoft 365 administrator to open a support ticket?
Your Microsoft 365 administrator is typically the person who set up your company's network or email system. If you cannot find them, try checking your account profile settings or contact your organization's IT helpdesk.




