MultiTenantOrganization.ReadWrite.All
Allows the app to read and write all multi-tenant organization details and tenants, without a signed-in user.
Permission Details
Read and write all multi-tenant organization details and tenants
Allows the app to read and write all multi-tenant organization details and tenants, without a signed-in user.
920def01-ca61-4d2d-b3df-105b46046a70
Read and write multi-tenant organization details and tenants
Allows the app to read and write multi-tenant organization details and tenants on behalf of the signed-in user.
77af1528-84f3-4023-8d90-d219cd433108
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
createdDateTime |
DateTimeOffsetNullable |
Date when multitenant organization was created. Read-only. |
description |
StringNullable |
Description of the multitenant organization. |
displayName |
StringNullable |
Display name of the multitenant organization. |
id |
String |
Tenant-specific object ID for the multitenant organization object. It is automatically generated when a multitenant organization object is created and stored in the local tenant. This ID is tenant-specific and doesn't match the object IDs of the same multitenant organization in other tenants. Read-only. Inherited from entity. |
state |
multiTenantOrganizationState |
State of the multitenant organization. The possible values are: active, inactive, unknownFutureValue. active indicates the multitenant organization is created. inactive indicates the multitenant organization isn't created. Read-only. |
joinRequest |
object |
Defines the status of a tenant joining a multitenant organization. |
tenants |
multiTenantOrganizationMember collection |
Defines tenants added to a multitenant organization. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.multiTenantOrganization",
"id": "String (identifier)",
"createdDateTime": "String (timestamp)",
"displayName": "String",
"description": "String",
"state": "String"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
joinRequest |
multiTenantOrganizationJoinRequestRecord |
Defines the status of a tenant joining a multitenant organization. |
tenants |
multiTenantOrganizationMember collection |
Defines tenants added to a multitenant organization. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
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.
Microsoft 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.Models;
var requestBody = new MultiTenantOrganizationMember
{
TenantId = "4a12efe6-aa14-4d03-8dff-88fc89e2e2ad",
DisplayName = "Fabrikam",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.TenantRelationships.MultiTenantOrganization.Tenants.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const multiTenantOrganizationMember = {
tenantId: '4a12efe6-aa14-4d03-8dff-88fc89e2e2ad',
displayName: 'Fabrikam'
};
await client.api('/tenantRelationships/multiTenantOrganization/tenants')
.post(multiTenantOrganizationMember);
Import-Module Microsoft.Graph.Identity.SignIns
$params = @{
tenantId = "4a12efe6-aa14-4d03-8dff-88fc89e2e2ad"
displayName = "Fabrikam"
}
New-MgTenantRelationshipMultiTenantOrganizationTenant -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.multi_tenant_organization_member import MultiTenantOrganizationMember
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = MultiTenantOrganizationMember(
tenant_id = "4a12efe6-aa14-4d03-8dff-88fc89e2e2ad",
display_name = "Fabrikam",
)
result = await graph_client.tenant_relationships.multi_tenant_organization.tenants.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 Application permissions or delegated permissions and search for MultiTenantOrganization.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.