{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-device-configuration-state-schema.json",
  "title": "microsoft.graph.deviceConfigurationState",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-manageddevice-api-openapi.yml#/components/schemas/microsoft.graph.deviceConfigurationState",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "deviceConfigurationState",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the policy for this policyBase"
        },
        "platformType": {
          "$ref": "#/$defs/microsoft.graph.policyPlatformType"
        },
        "settingCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Count of how many setting a policy holds",
          "format": "int32"
        },
        "settingStates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.deviceConfigurationSettingState"
          }
        },
        "state": {
          "$ref": "#/$defs/microsoft.graph.complianceStatus"
        },
        "version": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "The version of the policy",
          "format": "int32"
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Support for this Entity is being deprecated starting May 2026 & will no longer be supported."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.deviceConfigurationState",
  "$defs": {
    "microsoft.graph.complianceStatus": {
      "title": "complianceStatus",
      "enum": [
        "unknown",
        "notApplicable",
        "compliant",
        "remediated",
        "nonCompliant",
        "error",
        "conflict",
        "notAssigned"
      ],
      "type": "string"
    },
    "microsoft.graph.deviceConfigurationSettingState": {
      "title": "deviceConfigurationSettingState",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "currentValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "Current value of setting on device"
        },
        "errorCode": {
          "type": "number",
          "description": "Error code for the setting",
          "format": "int64"
        },
        "errorDescription": {
          "type": [
            "string",
            "null"
          ],
          "description": "Error description"
        },
        "instanceDisplayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of setting instance that is being reported."
        },
        "setting": {
          "type": [
            "string",
            "null"
          ],
          "description": "The setting that is being reported"
        },
        "settingName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Localized/user friendly setting name that is being reported"
        },
        "sources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.settingSource"
          },
          "description": "Contributing policies"
        },
        "state": {
          "$ref": "#/$defs/microsoft.graph.complianceStatus"
        },
        "userEmail": {
          "type": [
            "string",
            "null"
          ],
          "description": "UserEmail"
        },
        "userId": {
          "type": [
            "string",
            "null"
          ],
          "description": "UserId"
        },
        "userName": {
          "type": [
            "string",
            "null"
          ],
          "description": "UserName"
        },
        "userPrincipalName": {
          "type": [
            "string",
            "null"
          ],
          "description": "UserPrincipalName."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Device Configuration Setting State for a given device."
    },
    "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.policyPlatformType": {
      "title": "policyPlatformType",
      "enum": [
        "android",
        "androidForWork",
        "iOS",
        "macOS",
        "windowsPhone81",
        "windows81AndLater",
        "windows10AndLater",
        "all"
      ],
      "type": "string",
      "description": "Supported platform types for policies.",
      "x-ms-enum": {
        "name": "policyPlatformType",
        "modelAsString": false,
        "values": [
          {
            "value": "android",
            "description": "Android.",
            "name": "android"
          },
          {
            "value": "androidForWork",
            "description": "AndroidForWork.",
            "name": "androidForWork"
          },
          {
            "value": "iOS",
            "description": "iOS.",
            "name": "iOS"
          },
          {
            "value": "macOS",
            "description": "MacOS.",
            "name": "macOS"
          },
          {
            "value": "windowsPhone81",
            "description": "WindowsPhone 8.1.",
            "name": "windowsPhone81"
          },
          {
            "value": "windows81AndLater",
            "description": "Windows 8.1 and later",
            "name": "windows81AndLater"
          },
          {
            "value": "windows10AndLater",
            "description": "Windows 10 and later.",
            "name": "windows10AndLater"
          },
          {
            "value": "all",
            "description": "All platforms.",
            "name": "all"
          }
        ]
      }
    },
    "microsoft.graph.settingSource": {
      "title": "settingSource",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "sourceType": {
          "$ref": "#/$defs/microsoft.graph.settingSourceType"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.settingSourceType": {
      "title": "settingSourceType",
      "enum": [
        "deviceConfiguration",
        "deviceIntent"
      ],
      "type": "string"
    }
  }
}