Is there an API for Microsoft Defender multitenant management?

Reviewed by ContraForce team ยท Updated 2026-09-04

> 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.

Last verified: 2026-09-04. Sources linked at the foot of the page.

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.

OperationProgrammatic path
Advanced hunting, single tenantGraph `runHuntingQuery`, documented
Incident read and update, single tenantIncident API, documented
Event streamingStreaming API, documented
Create or edit a distribution profileNone documented
Trigger a distribution profile syncNone documented
Cross-tenant hunting as one operationNone documented
Add or remove a tenant from multitenant managementNone documented
State this precisely, because the distinction matters: Microsoft does not document these APIs. That is an observable fact about the public reference. Whether they exist unpublished, or are planned, is not something the documentation settles either way.

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, and they compound rather than add:

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?

The gap above is not a Microsoft failure so much as a layer that does not exist yet in the platform. Something has to hold the multi-tenant abstraction and expose it programmatically.

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

Verified on the date shown. An absence of documented API is a statement about the public reference on that date, not a permanent property of the product.

Continue the evaluation

Sources and review method

Product capabilities were reviewed against the page-specific primary sources below on 2026-09-04. Performance claims require the population and limitations stated in the linked methodology.

Related microsoft resources