Is there an API for Microsoft Defender multitenant management?
The three documented Defender XDR APIs, and what multi-tenant operations have no programmatic path.
Microsoft publishes no API for multitenant management operations. The Defender XDR supported-APIs page lists exactly three: Advanced Hunting, Incident, and Streaming. No Graph resource, REST endpoint, or PowerShell cmdlet is documented for creating, editing, or syncing content distribution profiles, and every documented path for those runs through the portal.
What does Microsoft actually expose?
The Microsoft Defender XDR supported-APIs reference enumerates three API surfaces: Advanced Hunting, Incident, and Streaming. Each is scoped to a tenant. None of them addresses multitenant management.
The Microsoft Graph security API overview enumerates eleven feature areas, covering advanced hunting, alerts, attack simulation and training, eDiscovery and others. Multitenant management is not among them. Graph exposes runHuntingQuery for running a KQL query against data stored in Microsoft 365 Defender, which is per tenant.
So the per-tenant API surface is real and reasonably complete. What has no programmatic surface is the layer above it.
What specifically cannot be automated?
Content distribution is the clearest case. Microsoft's own documentation for creating a distribution profile ends at a portal action, and no API reference, Graph resource, or cmdlet exists for creating, editing, or triggering a sync of one. Microsoft's MSSP guidance routes this work to the portal's built-in multitenant management.
| Operation | Programmatic path |
|---|---|
| Advanced hunting, single tenant | Graph runHuntingQuery, documented |
| Incident read and update, single tenant | Incident API, documented |
| Event streaming | Streaming API, documented |
| Create or edit a distribution profile | None documented |
| Trigger a distribution profile sync | None documented |
| Cross-tenant hunting as one operation | None documented |
| Add or remove a tenant from multitenant management | None documented |
Microsoft does not document these APIs. The documentation does not say whether they exist unpublished or are planned.
What does portal-only management cost at scale?
Every multi-tenant operation becomes a human sitting in a console. Onboarding a detection rule to eighty customers is eighty portal interactions, or one distribution profile that itself was created by hand and whose sync is triggered by hand.
Three consequences follow:
- No version control. Detection content that exists only as portal state has no diff, no history, and no review before it reaches production.
- No CI/CD. Content cannot be promoted through environments, because there is no non-interactive way to apply it.
- No verification. Confirming that all eighty tenants received the same rule means checking all eighty, in the portal, by hand.
Per-tenant APIs do not solve this. Fanning out an authenticated call per customer is possible for hunting and incidents, but the operations that are genuinely multi-tenant, distribution and cross-tenant query, have no endpoint to fan out to.
What changes with an API-first control plane?
Something has to hold the multi-tenant abstraction and expose it programmatically, and that layer does not exist yet in Microsoft's platform.
ContraForce is API-first for this reason: workspaces, incidents, verdicts, and response actions are addressable through its own API and webhook surface, so multi-tenant operations can be scripted, reviewed, and run from a pipeline rather than performed in a console. Detection content is managed as versioned repositories with per-workspace deployment and rollback, which is the version control the portal path lacks.
Sources
- Microsoft Defender XDR supported APIs
- Microsoft Graph security API overview
- Manage multitenant content distribution
- Microsoft Defender multitenant management requirements
Continue the evaluation
Key sources
Related guides on Microsoft security operations
- Cross-tenant Sentinel playbooks and the Defender portal, Rule-triggered cross-tenant playbooks work; manual runs on alerts and entities are not supported in the Defender portal.
- Why multitenant advanced hunting returns less data than the per-tenant portal, The 50,000-record cap divided by tenant count, why truncation reads as missing tenants, and how to check coverage.
- Browse all answers
- See how the ContraForce platform works
Ready to Transform Your Security Operations?
See how ContraForce runs the full delivery loop for service providers. Connect a supported tenant and validate the workflow in your own environment.
Connect one workspace: scoped Entra ID application consent, no endpoint agents, no log forwarding.