Skip to content

Latest commit

 

History

History
128 lines (92 loc) · 4.61 KB

File metadata and controls

128 lines (92 loc) · 4.61 KB
title Update tenantGovernanceSetting
description Update the canReceiveInvitations property of the tenant governance settings.
author hafowler
ms.date 03/10/2026
ms.localizationpriority medium
ms.subservice entra-tenant-governance
doc_type apiPageType

Update tenantGovernanceSetting

Namespace: microsoft.graph.tenantGovernanceServices

[!INCLUDE beta-disclaimer]

Update the canReceiveInvitations property of the tenantGovernanceSetting singleton. This property controls whether the tenant can receive governance invitations.

[!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

PATCH /directory/tenantGovernance/settings

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

[!INCLUDE table-intro]

Property Type Description
canReceiveInvitations Boolean Indicates whether the tenant can receive governance invitations. When set to false, the tenant can't receive new governance invitations. When set to true, other tenants can send your tenant invitations by providing your tenant ID or domain name. This setting is disabled by default. Required.

Response

If successful, this method returns a 200 OK response code and an updated microsoft.graph.tenantGovernanceServices.tenantGovernanceSetting object in the response body.

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/directory/tenantGovernance/settings
Content-Type: application/json

{
  "canReceiveInvitations": true
}

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

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.tenantGovernanceServices.tenantGovernanceSetting",
  "isRelatedTenantsEnabled": true,
  "canReceiveInvitations": true
}