TenantGovernance-Setting.ReadWrite.All
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 Details
Read and write Tenant Governance settings
Allows the application to read Tenant Governance settings and update them on behalf of the signed-in user.
135f3533-12fc-4608-97ac-5c5cea64baf0
Properties
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
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"canReceiveInvitations": true,
"id": "String",
"isRelatedTenantsEnabled": true
}
Relationships
Relationships metadata is not available for this permission mapping.
View resource documentationGraph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
No API methods available for this version.
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
|
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 docsMicrosoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// 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();
const options = {
authProvider,
};
const client = Client.init(options);
await client.api('/directory/tenantGovernance/settings/enableRelatedTenants')
.version('beta')
.post();
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
Enable-MgBetaDirectoryTenantGovernanceSettingRelatedTenant
# 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
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Delegated permissions and search for TenantGovernance-Setting.ReadWrite.All
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.