Microsoft Entra ID (formerly Azure AD) Directory.tenant Governance API

The directory.tenantGovernance API from Microsoft Entra ID (formerly Azure AD) — 26 operation(s) for directory.tenantgovernance.

GitHub OpenAPI

Operations 45

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /directory/tenantGovernance Get the tenant governance container · Get tenantGovernance from directory #
Ask an LLM
“What governance settings and relationships does my tenant have?”
“Where are the governance invitations and policy templates stored?”
Tell an agent
Show the tenant governance container.
Get the governance settings and relationships for this tenant.
PATCH /directory/tenantGovernance Update the tenant governance container · Update the navigation property tenantGovernance in directory #
Ask an LLM
“Can I change the governance settings on my tenant?”
“How do I update the tenant governance container?”
Tell an agent
Update the tenant governance container with settings {settings}.
Patch the governance container with {settings}.
DELETE /directory/tenantGovernance Delete the tenant governance container · Delete navigation property tenantGovernance for directory #
Ask an LLM
“Can I remove the tenant governance container entirely?”
“What happens to governance relationships when I delete tenant governance?”
Tell an agent destructive · confirm first
Delete the tenant governance container.
Remove the governance settings and relationships from this tenant.
GET /directory/tenantGovernance/governanceInvitations List governance invitations · List governanceInvitations #
Ask an LLM
“Which governance invitations have been sent or received?”
“Can I filter governance invitations by status?”
Tell an agent
List all governance invitations.
Show governance invitations matching {filter}.
POST /directory/tenantGovernance/governanceInvitations Send a governance invitation · Create governanceInvitation #
Ask an LLM
“How do I invite another tenant to be governed?”
“Can I set an expiration date on a governance invitation?”
Tell an agent
Send a governance invitation to tenant {governedTenantId}.
Invite tenant {governedTenantId} to be governed, expiring {expirationDateTime}.
GET /directory/tenantGovernance/governanceInvitations/{governanceInvitation-id} Get a governance invitation · Get governanceInvitation #
Ask an LLM
“What are the details of one governance invitation?”
“Can I look up a governance invitation by ID?”
Tell an agent
Get governance invitation {governanceInvitation-id}.
Show the status of invitation {governanceInvitation-id}.
PATCH /directory/tenantGovernance/governanceInvitations/{governanceInvitation-id} Update a governance invitation · Update the navigation property governanceInvitations in directory #
Ask an LLM
“Can I extend the expiry of a governance invitation?”
“How do I update a governance invitation?”
Tell an agent
Update governance invitation {governanceInvitation-id} to expire {expirationDateTime}.
Extend the expiry of invitation {governanceInvitation-id} to {expirationDateTime}.
DELETE /directory/tenantGovernance/governanceInvitations/{governanceInvitation-id} Delete a governance invitation · Delete governanceInvitation #
Ask an LLM
“Can I withdraw a governance invitation?”
“What happens to a governance invitation when I delete it?”
Tell an agent destructive · confirm first
Delete governance invitation {governanceInvitation-id}.
Withdraw the governance invitation {governanceInvitation-id}.
GET /directory/tenantGovernance/governanceInvitations/$count Count governance invitations · Get the number of the resource #
Ask an LLM
“How many governance invitations exist?”
“Can I count governance invitations matching a filter?”
Tell an agent
Count the governance invitations.
Count governance invitations matching {filter}.
GET /directory/tenantGovernance/governancePolicyTemplates List governance policy templates · List governancePolicyTemplates #
Ask an LLM
“What governance policy templates are available?”
“Can I filter governance policy templates by name?”
Tell an agent
List all governance policy templates.
Show governance policy templates matching {filter}.
POST /directory/tenantGovernance/governancePolicyTemplates Create a governance policy template · Create tenantGovernancePolicyTemplate #
Ask an LLM
“How do I define the roles and apps provisioned in a governed tenant?”
“Can I create a new governance policy template?”
Tell an agent
Create a governance policy template named {displayName}.
Create a governance policy template {displayName} with role assignments {delegatedAdministrationRoleAssignments} and apps {multiTenantApplicationsToProvision}.
GET /directory/tenantGovernance/governancePolicyTemplates/{tenantGovernancePolicyTemplate-id} Get a governance policy template · Get tenantGovernancePolicyTemplate #
Ask an LLM
“What roles and apps does a governance policy template define?”
“Can I read one governance policy template by ID?”
Tell an agent
Get governance policy template {tenantGovernancePolicyTemplate-id}.
Show the role assignments in policy template {tenantGovernancePolicyTemplate-id}.
PATCH /directory/tenantGovernance/governancePolicyTemplates/{tenantGovernancePolicyTemplate-id} Update a governance policy template · Update tenantGovernancePolicyTemplate #
Ask an LLM
“Can I change the role assignments in a governance policy template?”
“How do I rename a governance policy template?”
Tell an agent
Update governance policy template {tenantGovernancePolicyTemplate-id} to {displayName}.
Change the role assignments in policy template {tenantGovernancePolicyTemplate-id} to {delegatedAdministrationRoleAssignments}.
DELETE /directory/tenantGovernance/governancePolicyTemplates/{tenantGovernancePolicyTemplate-id} Delete a governance policy template · Delete tenantGovernancePolicyTemplate #
Ask an LLM
“Can I delete a governance policy template?”
“Why can't I delete the default governance policy template?”
Tell an agent destructive · confirm first
Delete governance policy template {tenantGovernancePolicyTemplate-id}.
Remove the governance policy template {tenantGovernancePolicyTemplate-id}.
GET /directory/tenantGovernance/governancePolicyTemplates/$count Count governance policy templates · Get the number of the resource #
Ask an LLM
“How many governance policy templates exist?”
“Can I count governance policy templates matching a filter?”
Tell an agent
Count the governance policy templates.
Count governance policy templates matching {filter}.
GET /directory/tenantGovernance/governanceRelationships List governance relationships · List governanceRelationships #
Ask an LLM
“Which governance relationships exist between my tenants?”
“Can I filter governance relationships by status?”
Tell an agent
List all governance relationships.
Show governance relationships matching {filter}.
POST /directory/tenantGovernance/governanceRelationships Create a governance relationship · Create new navigation property to governanceRelationships for directory #
Ask an LLM
“How do I establish a governance relationship with another tenant?”
“Can I choose which policy template a new governance relationship uses?”
Tell an agent
Create a governance relationship with tenant {governedTenantId}.
Establish a governance relationship with tenant {governedTenantId} using policy snapshot {policySnapshot}.
GET /directory/tenantGovernance/governanceRelationships/{governanceRelationship-id} Get a governance relationship · Get governanceRelationship #
Ask an LLM
“What is the status of one governance relationship?”
“Can I look up a governance relationship by ID?”
Tell an agent
Get governance relationship {governanceRelationship-id}.
Show the status of governance relationship {governanceRelationship-id}.
PATCH /directory/tenantGovernance/governanceRelationships/{governanceRelationship-id} Terminate a governance relationship · Update governanceRelationship #
Ask an LLM
“How do I terminate a governance relationship?”
“Can the governed tenant terminate a relationship itself?”
Tell an agent
Set governance relationship {governanceRelationship-id} status to {status}.
Terminate governance relationship {governanceRelationship-id} with status {status}.
DELETE /directory/tenantGovernance/governanceRelationships/{governanceRelationship-id} Delete a governance relationship · Delete navigation property governanceRelationships for directory #
Ask an LLM
“Can I end a governance relationship?”
“What happens to resources provisioned in the governed tenant when I delete the relationship?”
Tell an agent destructive · confirm first
Delete governance relationship {governanceRelationship-id}.
End the governance relationship {governanceRelationship-id}.
GET /directory/tenantGovernance/governanceRelationships/$count Count governance relationships · Get the number of the resource #
Ask an LLM
“How many governance relationships exist between tenants?”
“Can I count governance relationships matching a filter?”
Tell an agent
Count governance relationships matching {filter}.
Tell me how many governance relationships there are.
GET /directory/tenantGovernance/governanceRequests List governance requests · List governanceRequests #
Ask an LLM
“Which governance requests have I sent to other tenants?”
“Can I see all governance requests where my tenant is the governed one?”
Tell an agent
List my governance requests.
Show governance requests matching {filter}.
POST /directory/tenantGovernance/governanceRequests Request a governance relationship · Create governanceRequest #
Ask an LLM
“How do I ask another tenant to govern me?”
“Can I set an expiration date on a governance request?”
Tell an agent
Request governance of tenant {governedTenantId} with policy {policySnapshot}.
Send a governance request to {governedTenantName} expiring {expirationDateTime}.
GET /directory/tenantGovernance/governanceRequests/{governanceRequest-id} Get a governance request · Get governanceRequest #
Ask an LLM
“What is the status of a specific governance request?”
“Can I look up one governance request by its ID?”
Tell an agent
Get governance request {governanceRequest-id}.
Show the status of governance request {governanceRequest-id}.
PATCH /directory/tenantGovernance/governanceRequests/{governanceRequest-id} Accept or reject a governance request · Update governanceRequest #
Ask an LLM
“How does the governed tenant accept a governance request?”
“Can I change the status of a governance request?”
Tell an agent
Set governance request {governanceRequest-id} status to {status}.
Accept governance request {governanceRequest-id}.
DELETE /directory/tenantGovernance/governanceRequests/{governanceRequest-id} Delete a governance request · Delete navigation property governanceRequests for directory #
Ask an LLM
“How do I withdraw a governance request I sent?”
“Can I cancel a governance request before it is accepted?”
Tell an agent destructive · confirm first
Delete governance request {governanceRequest-id}.
Withdraw governance request {governanceRequest-id}.
GET /directory/tenantGovernance/governanceRequests/{governanceRequest-id}/governancePolicyTemplate Get the policy behind a governance request · Get governancePolicyTemplate from directory #
Ask an LLM
“What governance policy does a governance request use?”
“Can I read the policy template attached to a request?”
Tell an agent
Get the policy template for governance request {governanceRequest-id}.
Show the governance policy behind request {governanceRequest-id}.
GET /directory/tenantGovernance/governanceRequests/$count Count governance requests · Get the number of the resource #
Ask an LLM
“How many governance requests do I have?”
“Can I count governance requests matching a filter?”
Tell an agent
Count governance requests matching {filter}.
Tell me how many governance requests exist.
GET /directory/tenantGovernance/relatedTenants List related tenants · List relatedTenants #
Ask an LLM
“Which tenants are related to mine?”
“Can I see related tenants with their metrics?”
Tell an agent
List related tenants.
Show related tenants matching {filter}.
POST /directory/tenantGovernance/relatedTenants Add a related tenant · Create new navigation property to relatedTenants for directory #
Ask an LLM
“How do I add a tenant to my related tenants list?”
“Can I record metrics for a tenant I discovered?”
Tell an agent
Add related tenant {relatedTenant} with metrics {metrics}.
Record billing metrics {billing} for related tenant {relatedTenant}.
GET /directory/tenantGovernance/relatedTenants/{relatedTenant-id} Get a related tenant · Get relatedTenant #
Ask an LLM
“What metrics are recorded for one related tenant?”
“Can I look up a related tenant by ID?”
Tell an agent
Get related tenant {relatedTenant-id}.
Show metrics for related tenant {relatedTenant-id}.
PATCH /directory/tenantGovernance/relatedTenants/{relatedTenant-id} Update a related tenant's metrics · Update the navigation property relatedTenants in directory #
Ask an LLM
“How do I update the sign-in metrics for a related tenant?”
“Can I change the billing metrics of a related tenant?”
Tell an agent
Update related tenant {relatedTenant-id} with sign-in metrics {metrics}.
Set billing metrics {billing} on related tenant {relatedTenant-id}.
DELETE /directory/tenantGovernance/relatedTenants/{relatedTenant-id} Remove a related tenant · Delete navigation property relatedTenants for directory #
Ask an LLM
“How do I remove a tenant from my related tenants?”
“Can I delete a related tenant record?”
Tell an agent destructive · confirm first
Delete related tenant {relatedTenant-id}.
Remove related tenant {relatedTenant-id} from my list.
GET /directory/tenantGovernance/relatedTenants/{relatedTenant-id}/appB2BSignInActivityMetrics Get app B2B sign-in metrics for a tenant · Get appB2BSignInActivityMetrics from directory #
Ask an LLM
“How many app-based B2B sign-ins has a related tenant had?”
“Can I read app B2B sign-in metrics for one tenant?”
Tell an agent
Get app B2B sign-in metrics for related tenant {relatedTenant-id}.
Show app-based B2B sign-in activity for tenant {relatedTenant-id}.
GET /directory/tenantGovernance/relatedTenants/{relatedTenant-id}/b2BRegistrationMetrics Get B2B registration metrics for a tenant · Get b2BRegistrationMetrics from directory #
Ask an LLM
“How many B2B registrations has a related tenant received?”
“Can I read B2B registration metrics for one tenant?”
Tell an agent
Get B2B registration metrics for related tenant {relatedTenant-id}.
Show B2B registration activity for tenant {relatedTenant-id}.
GET /directory/tenantGovernance/relatedTenants/{relatedTenant-id}/b2BSignInActivityMetrics Get B2B sign-in activity for a tenant · Get b2BSignInActivityMetrics from directory #
Ask an LLM
“How many B2B sign-ins has a related tenant had?”
“Can I read B2B sign-in activity metrics for one tenant?”
Tell an agent
Get B2B sign-in activity metrics for related tenant {relatedTenant-id}.
Show B2B sign-in activity for tenant {relatedTenant-id}.
GET /directory/tenantGovernance/relatedTenants/{relatedTenant-id}/billingMetrics Get billing metrics for a tenant · Get billingMetrics from directory #
Ask an LLM
“What billing metrics are recorded for a related tenant?”
“Can I read billing metrics for one tenant?”
Tell an agent
Get billing metrics for related tenant {relatedTenant-id}.
Show billing activity for tenant {relatedTenant-id}.
GET /directory/tenantGovernance/relatedTenants/{relatedTenant-id}/multiTenantApplicationMetrics Get multi-tenant app usage for a tenant · Get multiTenantApplicationMetrics from directory #
Ask an LLM
“How are multi-tenant applications used by a related tenant?”
“Can I read multi-tenant app usage metrics for one tenant?”
Tell an agent
Get multi-tenant app usage metrics for related tenant {relatedTenant-id}.
Show multi-tenant application usage for tenant {relatedTenant-id}.
GET /directory/tenantGovernance/relatedTenants/$count Count related tenants · Get the number of the resource #
Ask an LLM
“How many related tenants do I have?”
“Can I count related tenants matching a filter?”
Tell an agent
Count related tenants matching {filter}.
Tell me how many related tenants there are.
POST /directory/tenantGovernance/relatedTenants/refresh Refresh the related tenants list · Invoke action refresh #
Ask an LLM
“How do I force a refresh of my related tenants list?”
“Is the related tenants list updated automatically?”
Tell an agent
Refresh the related tenants list.
Force a refresh of discovered related tenants.
GET /directory/tenantGovernance/relatedTenants/refreshStatus() Check the related tenants refresh status · Invoke function refreshStatus #
Ask an LLM
“Has the most recent related tenants refresh finished?”
“What is the status of the related tenants refresh operation?”
Tell an agent
Get the status of the most recent related tenants refresh.
Check whether the related tenants refresh succeeded.
GET /directory/tenantGovernance/settings Get related tenant governance settings · Get tenantGovernanceSetting #
Ask an LLM
“Which tenants can receive governance invitations?”
“Is related tenant discovery enabled for my tenant?”
Tell an agent
Get the tenant governance settings.
Show which tenants can receive invitations.
PATCH /directory/tenantGovernance/settings Update related tenant governance settings · Update tenantGovernanceSetting #
Ask an LLM
“How do I stop my tenant from receiving governance invitations?”
“Can I disable related tenant discovery?”
Tell an agent
Set canReceiveInvitations to {can_receive_invitations}.
Disable related tenant discovery by setting isRelatedTenantsEnabled to {enabled}.
DELETE /directory/tenantGovernance/settings Delete related tenant governance settings · Delete navigation property settings for directory #
Ask an LLM
“How do I remove the tenant governance settings?”
“Can I delete the related tenants settings by ETag?”
Tell an agent destructive · confirm first
Delete the tenant governance settings.
Remove the related tenants settings if ETag {etag} matches.
POST /directory/tenantGovernance/settings/enableRelatedTenants Enable related tenant discovery · Invoke action enableRelatedTenants #
Ask an LLM
“How do I turn on related tenant discovery?”
“What happens after I enable related tenants?”
Tell an agent
Enable the related tenants feature.
Turn on related tenant discovery so related tenant APIs work.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/azure-ad:azure-ad-directory-tenantgovernance-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

azure-ad-directory-tenantgovernance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph…
  description: This OData service is located at https://graph.microsoft.com/v1.0
  version: v1.0
  x-ms-generated-by:
    toolName: Microsoft.OpenApi.OData
    toolVersion: 0.0.0.0
servers:
- url: https://graph.microsoft.com/v1.0
tags:


# --- truncated at 32 KB (1162 KB total) ---
# Full source: https://artifacts.apis.io/azure-ad/openapi/azure-ad-directory-tenantgovernance-api-openapi.yml