{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ad/json-schema/azure-ad-microsoft-graph-cross-tenant-migration-task-schema.json",
  "title": "microsoft.graph.crossTenantMigrationTask",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ad-solutions-migrationsroot-api-openapi.yml#/components/schemas/microsoft.graph.crossTenantMigrationTask",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "crossTenantMigrationTask",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "currentStatus": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.crossTenantMigrationServiceStatusDetails"
          },
          "description": "Most recent status of this migration task."
        },
        "lastUpdatedDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "Date and time when the task was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z.",
          "format": "date-time"
        },
        "taskType": {
          "type": "string",
          "description": "Type of migration task. Currently, only Users is supported."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.crossTenantMigrationTask",
  "$defs": {
    "microsoft.graph.crossTenantMigrationServiceStatus": {
      "title": "crossTenantMigrationServiceStatus",
      "enum": [
        "notStarted",
        "valid",
        "invalid",
        "error",
        "inProgress",
        "completed",
        "failed",
        "cancelled",
        "pendingCancel",
        "syncing",
        "synced",
        "finalizing",
        "forceComplete",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.crossTenantMigrationServiceStatusDetails": {
      "title": "crossTenantMigrationServiceStatusDetails",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "errors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.error"
          },
          "description": "Errors associated with the migration for this service."
        },
        "message": {
          "type": "string",
          "description": "Service status message."
        },
        "service": {
          "type": "string",
          "description": "Service or workload associated with the status details."
        },
        "status": {
          "$ref": "#/$defs/microsoft.graph.crossTenantMigrationServiceStatus"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.error": {
      "title": "error",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The error code."
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "The message for the error."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}