How to Access Microsoft Defender Multi-Tenant Alerts via API
Question details
The user needs to retrieve multi-tenant alerts and incidents from Microsoft Defender programmatically, but finds the data is missing when using APIs like Microsoft Graph.

- Product
- Microsoft Defender
- Device & OS
- not provided
- Scenario
- Attempting to query and access multi-tenant security alerts and incidents through Microsoft Graph or other APIs.
- Observed behavior
- Multi-tenant alerts and incidents are fully visible in the Microsoft Defender Multi-Tenant Management portal but are not returned when making API calls.
Ensure you have the necessary global administrator or security administrator permissions across the targeted tenants, and that your API authentication tokens are correctly configured.
Verify API Multi-Tenant Support and Permissions
Confirm that the specific API endpoint officially supports multi-tenant data retrieval and ensure proper cross-tenant permissions are configured.
Not all Microsoft Graph endpoints or Defender APIs have full feature parity with the web portal. It is essential to verify the official documentation for multi-tenant support.
Check the Microsoft Graph or Defender API documentation to confirm if multi-tenant queries are officially supported for the specific endpoint you are targeting.
Ensure your Azure Active Directory app registration has the required cross-tenant permissions and that Admin Consent has been successfully granted for all target tenants.
Confirm that all participating tenants have the appropriate Microsoft Defender licenses required to access security alerts programmatically via API.

Request Guidance in Microsoft Q&A Communities
If API documentation is unclear or the data remains inaccessible, consult specialized Microsoft forums for expert assistance.
Analyze Your Security API Data with WPS Office
While troubleshooting Microsoft Defender API integrations, you may need a reliable tool to document endpoints, analyze JSON payloads exported to CSV, or draft security reports. WPS Office is a free, lightweight, and highly compatible alternative to Microsoft Office that helps you seamlessly manage your data.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the on-screen instructions to complete the setup process.
- 3. Open API Logs: Launch WPS Spreadsheets to quickly open, format, and analyze your exported Defender API logs or CSV files.

Frequently Asked Questions
Why can I see multi-tenant alerts in the Defender portal but not via the API?
The Multi-Tenant Management portal may use internal endpoints or aggregate data differently than public APIs like Microsoft Graph. Public API endpoints sometimes lag behind newly released portal features in supporting cross-tenant data retrieval.
What information should I include when asking for Defender API help on Microsoft forums?
You should include the specific API endpoint you are calling, your authentication method (such as App-only or Delegated), the exact permissions granted in Azure AD, and the exact error code or response payload you received.
Are there specific licensing requirements for accessing multi-tenant Defender data?
Yes, accessing advanced security features and multi-tenant management typically requires specific licenses, such as Microsoft 365 E5 or Microsoft Defender for Endpoint P2, across all participating tenants.




