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.

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

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:

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

Continue the evaluation

Key sources

Related guides on Microsoft security operations

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.

Start for free Read the docs

Connect one workspace: scoped Entra ID application consent, no endpoint agents, no log forwarding.