ManagedTenants.ReadWrite.All
Allows the app to read and write all managed tenant information on behalf of the signed-in user.
Permission Details
Read and write all managed tenant information
Allows the app to read and write all managed tenant information on behalf of the signed-in user.
b31fa710-c9b3-4d9e-8f5e-8036eecddab9
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
delegatedAdminCustomers |
delegatedAdminCustomer collection |
The customer who has a delegated admin relationship with a Microsoft partner. |
delegatedAdminRelationships |
delegatedAdminRelationship collection |
The details of the delegated administrative privileges that a Microsoft partner has in a customer tenant. |
multiTenantOrganization |
object |
Defines an organization with more than one instance of Microsoft Entra ID. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.tenantRelationship"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
delegatedAdminCustomers |
delegatedAdminCustomer collection |
The customer who has a delegated admin relationship with a Microsoft partner. |
delegatedAdminRelationships |
delegatedAdminRelationship collection |
The details of the delegated administrative privileges that a Microsoft partner has in a customer tenant. |
multiTenantOrganization |
multiTenantOrganization |
Defines an organization with more than one instance of Microsoft Entra ID. |
Graph 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.
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
// Dependencies
using Microsoft.Graph.Beta.Models.ManagedTenants;
var requestBody = new TenantTag
{
DisplayName = "Support",
Description = "Tenants that have purchased extended support",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.TenantRelationships.ManagedTenants.TenantTags.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const tenantTag = {
displayName: 'Support',
description: 'Tenants that have purchased extended support'
};
await client.api('/tenantRelationships/managedTenants/tenantTags')
.version('beta')
.post(tenantTag);
Import-Module Microsoft.Graph.Beta.ManagedTenants
$params = @{
displayName = "Support"
description = "Tenants that have purchased extended support"
}
New-MgBetaTenantRelationshipManagedTenantTag -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.managed_tenants.tenant_tag import TenantTag
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = TenantTag(
display_name = "Support",
description = "Tenants that have purchased extended support",
)
result = await graph_client.tenant_relationships.managed_tenants.tenant_tags.post(request_body)
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 ManagedTenants.ReadWrite.All
Grant Admin Consent
This delegated permission requires admin consent.