Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
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.
Validate the configuration of a crossTenantMigrationJob. This function doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that would affect an actual migration job.
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 permission | Higher privileged permissions |
|---|---|---|
| Delegated (work or school account) | Not supported. | Not supported. |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | Not supported. | Not supported. |
Important
Extra permissions are required to call this API. The signed-in user or application must be assigned the Global Administrator privileged Microsoft Entra role.
HTTP request
POST /solutions/migrations/crossTenantMigrationJobs/validate
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 a JSON representation of the parameters.
The following table lists the parameters that are required when you call this action.
| Parameter | Type | Description |
|---|---|---|
| displayName | String | Name of the crossTenantMigrationJob to validate |
| completeAfterDateTime | String | When the CrossTenantMigrationJob |
| sourceTenantId | String | Source tenant for the CrossTenantMigrationJob |
| exchangeSettings | exchangeOnlineCrossTenantMigrationSettings | Exchange migration settings for the CrossTenantMigrationJob |
| workloads | String collection | Workloads to validate for the CrossTenantMigrationJob |
| resourceType | String | Type of resource in the CrossTenantMigrationJob. |
| resources | String collection | Identifiers of the users in the CrossTenantMigrationJob to validate |
Response
If successful, this action returns a 201 Created response code and a crossTenantMigrationJob in the response body.
Examples
Request
The following example shows a request.
POST https://graph.microsoft.com/beta/solutions/migrations/crossTenantMigrationJobs/validate
Content-Type: application/json
{
"displayName": "Contoso_migration_validation_job",
"completeAfterDateTime": "2025-05-22T17:14:52Z",
"sourceTenantId": "12345678-1234-1234-1234-123456789012",
"exchangeSettings": {
"targetDeliveryDomain": "fabrikam.com",
"sourceEndpoint": "EXOHandler"
},
"resources": [
"b5b8bc4f-0e36-4ad3-8ddf-248b68260b89",
"ac87d040-a081-426c-a73b-81133f458a29"
],
"workloads": [ "Teams" ],
"resourceType": "Users"
}
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#microsoft.graph.crossTenantMigrationJob",
"id": "0d1d9dbb-7676-4731-a601-5e8406fd7bcf",
"displayName": "Contoso_migration_validation_job",
"status": "validateSubmitted",
"jobType": "validate",
"message": "Validation job has been submitted successfully",
"completeAfterDateTime": "2025-05-22T17:14:52Z",
"sourceTenantId": "12345678-1234-1234-1234-123456789012",
"targetTenantId": "87654321-4321-4321-4321-210987654321",
"resourceType": "users",
"resources": [],
"workloads": [
"teams"
],
"createdBy": "admin@fabrikam.onmicrosoft.com",
"createdDateTime": "2025-11-07T00:19:21.4810014Z",
"lastUpdatedDateTime": "2025-11-07T00:19:21Z",
"exchangeSettings": {
"targetDeliveryDomain": "fabrikam.com",
"sourceEndpoint": "EXOHandler"
}
}