{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-windows-autopilot-device-identity-schema.json",
  "title": "microsoft.graph.windowsAutopilotDeviceIdentity",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-windowsautopilotdeviceidentity-api-openapi.yml#/components/schemas/microsoft.graph.windowsAutopilotDeviceIdentity",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "windowsAutopilotDeviceIdentity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "addressableUserName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Addressable user name."
        },
        "azureActiveDirectoryDeviceId": {
          "type": [
            "string",
            "null"
          ],
          "description": "AAD Device ID - to be deprecated"
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Display Name"
        },
        "enrollmentState": {
          "$ref": "#/$defs/microsoft.graph.enrollmentState"
        },
        "groupTag": {
          "type": [
            "string",
            "null"
          ],
          "description": "Group Tag of the Windows autopilot device."
        },
        "lastContactedDateTime": {
          "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": "Intune Last Contacted Date Time of the Windows autopilot device.",
          "format": "date-time"
        },
        "managedDeviceId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Managed Device ID"
        },
        "manufacturer": {
          "type": [
            "string",
            "null"
          ],
          "description": "Oem manufacturer of the Windows autopilot device."
        },
        "model": {
          "type": [
            "string",
            "null"
          ],
          "description": "Model name of the Windows autopilot device."
        },
        "productKey": {
          "type": [
            "string",
            "null"
          ],
          "description": "Product Key of the Windows autopilot device."
        },
        "purchaseOrderIdentifier": {
          "type": [
            "string",
            "null"
          ],
          "description": "Purchase Order Identifier of the Windows autopilot device."
        },
        "resourceName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Resource Name."
        },
        "serialNumber": {
          "type": [
            "string",
            "null"
          ],
          "description": "Serial number of the Windows autopilot device."
        },
        "skuNumber": {
          "type": [
            "string",
            "null"
          ],
          "description": "SKU Number"
        },
        "systemFamily": {
          "type": [
            "string",
            "null"
          ],
          "description": "System Family"
        },
        "userPrincipalName": {
          "type": [
            "string",
            "null"
          ],
          "description": "User Principal Name."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "The windowsAutopilotDeviceIdentity resource represents a Windows Autopilot Device."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.windowsAutopilotDeviceIdentity",
  "$defs": {
    "microsoft.graph.enrollmentState": {
      "title": "enrollmentState",
      "enum": [
        "unknown",
        "enrolled",
        "pendingReset",
        "failed",
        "notContacted"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "enrollmentState",
        "modelAsString": false,
        "values": [
          {
            "value": "unknown",
            "description": "Device enrollment state is unknown",
            "name": "unknown"
          },
          {
            "value": "enrolled",
            "description": "Device is Enrolled.",
            "name": "enrolled"
          },
          {
            "value": "pendingReset",
            "description": "Enrolled but it's enrolled via enrollment profile and the enrolled profile is different from the assigned profile.",
            "name": "pendingReset"
          },
          {
            "value": "failed",
            "description": "Not enrolled and there is enrollment failure record.",
            "name": "failed"
          },
          {
            "value": "notContacted",
            "description": "Device is imported but not enrolled.",
            "name": "notContacted"
          }
        ]
      }
    },
    "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"
        }
      }
    }
  }
}