{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-device-management-exchange-connector-schema.json",
  "title": "microsoft.graph.deviceManagementExchangeConnector",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-devicemanagementexchangeconnector-api-openapi.yml#/components/schemas/microsoft.graph.deviceManagementExchangeConnector",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "deviceManagementExchangeConnector",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "connectorServerName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the server hosting the Exchange Connector."
        },
        "exchangeAlias": {
          "type": [
            "string",
            "null"
          ],
          "description": "An alias assigned to the Exchange server"
        },
        "exchangeConnectorType": {
          "$ref": "#/$defs/microsoft.graph.deviceManagementExchangeConnectorType"
        },
        "exchangeOrganization": {
          "type": [
            "string",
            "null"
          ],
          "description": "Exchange Organization to the Exchange server"
        },
        "lastSyncDateTime": {
          "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": "Last sync time for the Exchange Connector",
          "format": "date-time"
        },
        "primarySmtpAddress": {
          "type": [
            "string",
            "null"
          ],
          "description": "Email address used to configure the Service To Service Exchange Connector."
        },
        "serverName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the Exchange server."
        },
        "status": {
          "$ref": "#/$defs/microsoft.graph.deviceManagementExchangeConnectorStatus"
        },
        "version": {
          "type": [
            "string",
            "null"
          ],
          "description": "The version of the ExchangeConnectorAgent"
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Entity which represents a connection to an Exchange environment."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.deviceManagementExchangeConnector",
  "$defs": {
    "microsoft.graph.deviceManagementExchangeConnectorStatus": {
      "title": "deviceManagementExchangeConnectorStatus",
      "enum": [
        "none",
        "connectionPending",
        "connected",
        "disconnected",
        "unknownFutureValue"
      ],
      "type": "string",
      "description": "The current status of the Exchange Connector.",
      "x-ms-enum": {
        "name": "deviceManagementExchangeConnectorStatus",
        "modelAsString": false,
        "values": [
          {
            "value": "none",
            "description": "No Connector exists.",
            "name": "none"
          },
          {
            "value": "connectionPending",
            "description": "Pending Connection to the Exchange Environment.",
            "name": "connectionPending"
          },
          {
            "value": "connected",
            "description": "Connected to the Exchange Environment",
            "name": "connected"
          },
          {
            "value": "disconnected",
            "description": "Disconnected from the Exchange Environment",
            "name": "disconnected"
          },
          {
            "value": "unknownFutureValue",
            "description": "Evolvable enumeration sentinel value. Do not use.",
            "name": "unknownFutureValue"
          }
        ]
      }
    },
    "microsoft.graph.deviceManagementExchangeConnectorType": {
      "title": "deviceManagementExchangeConnectorType",
      "enum": [
        "onPremises",
        "hosted",
        "serviceToService",
        "dedicated",
        "unknownFutureValue"
      ],
      "type": "string",
      "description": "The type of Exchange Connector.",
      "x-ms-enum": {
        "name": "deviceManagementExchangeConnectorType",
        "modelAsString": false,
        "values": [
          {
            "value": "onPremises",
            "description": "Connects to on-premises Exchange Environment.",
            "name": "onPremises"
          },
          {
            "value": "hosted",
            "description": "Connects to O365 multi-tenant Exchange environment",
            "name": "hosted"
          },
          {
            "value": "serviceToService",
            "description": "Intune Service connects directly to O365 multi-tenant Exchange environment",
            "name": "serviceToService"
          },
          {
            "value": "dedicated",
            "description": "Connects to O365 Dedicated Exchange environment.",
            "name": "dedicated"
          },
          {
            "value": "unknownFutureValue",
            "description": "Evolvable enumeration sentinel value. Do not use.",
            "name": "unknownFutureValue"
          }
        ]
      }
    },
    "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"
        }
      }
    }
  }
}