ESC
Type to search...

TenantGovernance-Setting.ReadWrite.All

Export JSON
Export CSV
Copy URL
Print
Delegated Read/Write All Resources

Allows the application to read Tenant Governance settings and update them on behalf of the signed-in user.

In short

TenantGovernance-Setting.ReadWrite.All is a delegated permission in the Microsoft Graph API, grouped under the TenantGovernance-Setting category. Allows the application to read Tenant Governance settings and update them on behalf of the signed-in user. It grants read and write access to resources. This delegated permission requires admin consent.

Permission data: October 3, 2026 at 3:19 AM UTC
Delegated Access App-Only Access

Permission Details

Delegated Permission Admin consent required

Read and write Tenant Governance settings

Allows the application to read Tenant Governance settings and update them on behalf of the signed-in user.

Properties

Microsoft Graph v1.0 exact-category

Properties is shown from stable Microsoft Graph v1.0 metadata.

Property Type Description
canReceiveInvitations boolean
id string The unique identifier for an entity. Read-only.
isRelatedTenantsEnabled boolean

JSON Representation

Microsoft Graph v1.0 exact-category

JSON representation is shown from stable Microsoft Graph v1.0 metadata.

JSON representation
{
  "canReceiveInvitations": true,
  "id": "String",
  "isRelatedTenantsEnabled": true
}

Relationships

Relationships metadata is not available for this permission mapping.

View resource documentation

Graph Methods

Delegated access App-only access
Exact Microsoft Learn match

Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

No API methods available for this version.

Exact Microsoft Learn match

Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
GET /directory/tenantGovernance/settings
POST /directory/tenantGovernance/settings/enableRelatedTenants
PATCH /directory/tenantGovernance/settings
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

No deterministic PowerShell command map is available for this permission.

Browse PowerShell docs
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
Get-MgBetaDirectoryTenantGovernanceSetting /directory/tenantGovernance/settings
Get tenantGovernanceSetting
Update-MgBetaDirectoryTenantGovernanceSetting /directory/tenantGovernance/settings
Update tenantGovernanceSetting

Code Examples

C# / .NET SDK
tenantGovernanceSetting: enableRelatedTenants
// Code snippets are only available for the latest version. Current version is 5.x

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Directory.TenantGovernance.Settings.MicrosoftGraphTenantGovernanceServicesEnableRelatedTenants.PostAsync();
JavaScript
tenantGovernanceSetting: enableRelatedTenants
const options = {
	authProvider,
};

const client = Client.init(options);

await client.api('/directory/tenantGovernance/settings/enableRelatedTenants')
	.version('beta')
	.post();
PowerShell
tenantGovernanceSetting: enableRelatedTenants
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement

Enable-MgBetaDirectoryTenantGovernanceSettingRelatedTenant
Python
tenantGovernanceSetting: enableRelatedTenants
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python

await graph_client.directory.tenant_governance.settings.microsoft_graph_tenant_governance_services_enable_related_tenants.post()

App Registration

1

Navigate to Azure Portal

Go to App registrations in Microsoft Entra admin center

2

Add API Permission

Select your app → API permissions → Add a permission → Microsoft Graph

3

Select Permission Type

Choose Delegated permissions and search for TenantGovernance-Setting.ReadWrite.All

4

Grant Admin Consent

This delegated permission requires admin consent.

Frequently asked questions

What is the TenantGovernance-Setting.ReadWrite.All Microsoft Graph permission?

TenantGovernance-Setting.ReadWrite.All is a delegated permission in the Microsoft Graph API, grouped under the TenantGovernance-Setting category. Allows the application to read Tenant Governance settings and update them on behalf of the signed-in user. It grants read and write access to resources. This delegated permission requires admin consent. It is mapped to the Microsoft Graph tenantGovernanceSetting resource type. 3 documented Microsoft Graph REST methods require it. 2 Microsoft Graph PowerShell commands are documented for it.

Is TenantGovernance-Setting.ReadWrite.All an application or a delegated permission?

TenantGovernance-Setting.ReadWrite.All is a delegated permission only. It grants access on behalf of a signed-in user and cannot be used for app-only access.

Does TenantGovernance-Setting.ReadWrite.All require admin consent?

This delegated permission requires admin consent.

What is the permission ID (GUID) for TenantGovernance-Setting.ReadWrite.All?

For TenantGovernance-Setting.ReadWrite.All, the delegated (OAuth2 scope) ID is 135f3533-12fc-4608-97ac-5c5cea64baf0. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.