tenantGroup: tenantSearch
Namespace: microsoft.graph.managedTenants
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Searches for the specified managed tenants across tenant groups.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ❌ | ❌ | ❌ |
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.
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | ManagedTenants.Read.All | ManagedTenants.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Not supported. | Not supported. |
HTTP request
POST /tenantRelationships/managedTenants/tenantGroups/tenantSearch
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Content-Type | application/json. Required. |
Request body
In the request body, supply JSON representation of the parameters.
The following table shows the parameters that can be used with this action.
Parameter | Type | Description |
---|---|---|
tenantId | String | The Microsoft Entra tenant identifier for the managed tenant. |
Response
If successful, this action returns a 200 OK
response code and a microsoft.graph.managedTenants.tenantGroup collection in the response body.
Examples
Request
POST https://graph.microsoft.com/beta/tenantRelationships/managedTenants/tenantGroups/tenantSearch
Content-Type: application/json
{
"tenantId": "String"
}
Response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#tenantGroups",
"value": [
{
"id": "2e6a0c9f-986d-480e-ad4b-bdfddc047aba",
"displayName": "Default",
"allTenantsIncluded": true,
"tenantIds": [],
"managementIntents": [
{
"managementIntentId": "586895ab-8a59-4b79-be25-b06949a819bb",
"managementIntentDisplayName": "Default Baseline",
"managementTemplates": [
{
"managementTemplateId": "e5834405-43d2-4815-867d-3dd600308d1c",
"displayName": "Baseline - Block Legacy Authentication",
"category": "identity"
},
{
"managementTemplateId": "12524106-036f-457f-b7a6-b003509d29c8",
"displayName": "Baseline - Require MFA for Admins",
"category": "identity"
},
{
"managementTemplateId": "21230aa5-d5a9-4403-b179-baf2de242aca",
"displayName": "Baseline - Require MFA for end users",
"category": "identity"
},
{
"managementTemplateId": "e2cadc41-a08f-45e7-8eb1-942d224dfb9a",
"displayName": "Baseline - Enroll devices in MEM",
"category": "devices"
},
{
"managementTemplateId": "31d57d29-2d54-4074-84bd-51c008c2e6b2",
"displayName": "Baseline - Setup Compliance Policy for Windows 10 devices",
"category": "devices"
},
{
"managementTemplateId": "b2d6d189-ea31-4cf8-b75e-41210c583127",
"displayName": "Baseline - Setup Microsoft Defender Antivirus Policy for Windows 10 devices",
"category": "devices"
}
]
}
],
"managementActions": []
}
]
}