Edit

Share via


Get crossTenantMigrationJob

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.

Read the properties and relationships of crossTenantMigrationJob object. Includes details of the crossTenantMigrationJob , but not details of the individual crossTenantMigrationTasks of the crossTenantMigrationJob.

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

GET /solutions/migrations/crossTenantMigrationJobs/{crossTenantMigrationJobId}

Optional query parameters

This method supports some of the OData query parameters to help customize the response. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a crossTenantMigrationJob object in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/solutions/migrations/crossTenantMigrationJobs/012ec4f4-df7e-41ae-ba95-6d7ccb8f74a1

Response

The following example shows the response.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#solutions/migrations/crossTenantMigrationJobs/$entity",
  "id": "012ec4f4-df7e-41ae-ba95-6d7ccb8f74a1",
  "displayName": "Contoso_user_migration",
  "status": "completed",
  "jobType": "migrate",
  "message": "The batch and all of its users have been successfully migrated with no failures.",
  "completeAfterDateTime": "2025-11-06T09:11:33.2115505Z",
  "sourceTenantId": "12345678-1234-1234-1234-123456789012",
  "targetTenantId": "87654321-4321-4321-4321-210987654321",
  "resourceType": "users",
  "resources": [],
  "workloads": [],
  "createdBy": "a0d9fdb1-171f-4e2b-8a82-06775ad24790",
  "createdDateTime": "2025-11-06T09:06:34.4773205Z",
  "lastUpdatedDateTime": "2025-11-06T11:26:00Z",
  "exchangeSettings": {
    "targetDeliveryDomain": "contoso.onmicrosoft.com",
    "sourceEndpoint": "EXOHandler"
  }
}