Skip to content

Latest commit

 

History

History
109 lines (78 loc) · 4.01 KB

File metadata and controls

109 lines (78 loc) · 4.01 KB
title tenantGovernanceSetting: enableRelatedTenants
description Enable the related tenants feature for tenant discovery.
author hafowler
ms.date 03/10/2026
ms.localizationpriority medium
ms.subservice entra-tenant-governance
doc_type apiPageType

tenantGovernanceSetting: enableRelatedTenants

Namespace: microsoft.graph.tenantGovernanceServices

[!INCLUDE beta-disclaimer]

Enable the related tenants feature for tenant discovery. After calling this action, the isRelatedTenantsEnabled property of tenantGovernanceSetting is set to true, which allows the use of related tenant APIs.

Important

This action must be called before using any related tenant APIs. Related tenant APIs won't run successfully unless this feature is explicitly enabled.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

[!INCLUDE rbac-tenant-governance-apis-write]

HTTP request

POST /directory/tenantGovernance/settings/enableRelatedTenants

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this action returns a 204 No Content response code.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/directory/tenantGovernance/settings/enableRelatedTenants

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 204 No Content