{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-intune/json-schema/microsoft-intune-microsoft-graph-device-compliance-policy-setting-state-summary-schema.json",
  "title": "microsoft.graph.deviceCompliancePolicySettingStateSummary",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-intune-devicemanagement-devicecompliancepolicysettingstatesummary-api-openapi.yml#/components/schemas/microsoft.graph.deviceCompliancePolicySettingStateSummary",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "deviceCompliancePolicySettingStateSummary",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "compliantDeviceCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Number of compliant devices",
          "format": "int32"
        },
        "conflictDeviceCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Number of conflict devices",
          "format": "int32"
        },
        "errorDeviceCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Number of error devices",
          "format": "int32"
        },
        "nonCompliantDeviceCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Number of NonCompliant devices",
          "format": "int32"
        },
        "notApplicableDeviceCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Number of not applicable devices",
          "format": "int32"
        },
        "platformType": {
          "$ref": "#/$defs/microsoft.graph.policyPlatformType"
        },
        "remediatedDeviceCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Number of remediated devices",
          "format": "int32"
        },
        "setting": {
          "type": [
            "string",
            "null"
          ],
          "description": "The setting class name and property name."
        },
        "settingName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the setting."
        },
        "unknownDeviceCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Number of unknown devices",
          "format": "int32"
        },
        "deviceComplianceSettingStates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.deviceComplianceSettingState"
          },
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Device Compilance Policy Setting State summary across the account."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.deviceCompliancePolicySettingStateSummary",
  "$defs": {
    "microsoft.graph.complianceStatus": {
      "title": "complianceStatus",
      "enum": [
        "unknown",
        "notApplicable",
        "compliant",
        "remediated",
        "nonCompliant",
        "error",
        "conflict",
        "notAssigned"
      ],
      "type": "string"
    },
    "microsoft.graph.deviceComplianceSettingState": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "deviceComplianceSettingState",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "complianceGracePeriodExpirationDateTime": {
              "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": "The DateTime when device compliance grace period expires",
              "format": "date-time"
            },
            "deviceId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The Device Id that is being reported"
            },
            "deviceModel": {
              "type": [
                "string",
                "null"
              ],
              "description": "The device model that is being reported"
            },
            "deviceName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The Device Name that is being reported"
            },
            "setting": {
              "type": [
                "string",
                "null"
              ],
              "description": "The setting class name and property name."
            },
            "settingName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The Setting Name that is being reported"
            },
            "state": {
              "$ref": "#/$defs/microsoft.graph.complianceStatus"
            },
            "userEmail": {
              "type": [
                "string",
                "null"
              ],
              "description": "The User email address that is being reported"
            },
            "userId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The user Id that is being reported"
            },
            "userName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The User Name that is being reported"
            },
            "userPrincipalName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The User PrincipalName that is being reported"
            },
            "@odata.type": {
              "type": "string"
            }
          },
          "description": "Device compliance setting State for a given device."
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.deviceComplianceSettingState"
    },
    "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"
          }
        ]
      }
    }
  }
}