{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-secure-score-schema.json",
  "title": "microsoft.graph.secureScore",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-securescore-api-openapi.yml#/components/schemas/microsoft.graph.secureScore",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "secureScore",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "activeUserCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "description": "Active user count of the given tenant.",
          "format": "int32"
        },
        "averageComparativeScores": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.averageComparativeScore"
          },
          "description": "Average score by different scopes (for example, average by industry, average by seating) and control category (Identity, Data, Device, Apps, Infrastructure) within the scope."
        },
        "azureTenantId": {
          "type": "string",
          "description": "GUID string for tenant ID."
        },
        "controlScores": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.controlScore"
          },
          "description": "Contains tenant scores for a set of controls."
        },
        "createdDateTime": {
          "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",
            "null"
          ],
          "description": "When the report was created.",
          "format": "date-time"
        },
        "currentScore": {
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ],
              "format": "double"
            },
            {
              "type": [
                "string",
                "null"
              ]
            },
            {
              "$ref": "#/$defs/ReferenceNumeric"
            }
          ],
          "description": "Tenant current attained score on specified date."
        },
        "enabledServices": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "Microsoft-provided services for the tenant (for example, Exchange online, Skype, Sharepoint)."
        },
        "licensedUserCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "description": "Licensed user count of the given tenant.",
          "format": "int32"
        },
        "maxScore": {
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ],
              "format": "double"
            },
            {
              "type": [
                "string",
                "null"
              ]
            },
            {
              "$ref": "#/$defs/ReferenceNumeric"
            }
          ],
          "description": "Tenant maximum possible score on specified date."
        },
        "vendorInformation": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.securityVendorInformation"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Complex type containing details about the security product/service vendor, provider, and subprovider (for example, vendor=Microsoft; provider=SecureScore). Required."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.secureScore",
  "$defs": {
    "ReferenceNumeric": {
      "enum": [
        "-INF",
        "INF",
        "NaN",
        null
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "microsoft.graph.averageComparativeScore": {
      "title": "averageComparativeScore",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "averageScore": {
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ],
              "format": "double"
            },
            {
              "type": [
                "string",
                "null"
              ]
            },
            {
              "$ref": "#/$defs/ReferenceNumeric"
            }
          ],
          "description": "Average score within specified basis."
        },
        "basis": {
          "type": [
            "string",
            "null"
          ],
          "description": "Scope type. The possible values are: AllTenants, TotalSeats, IndustryTypes."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.controlScore": {
      "title": "controlScore",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "controlCategory": {
          "type": [
            "string",
            "null"
          ],
          "description": "Control action category (Identity, Data, Device, Apps, Infrastructure)."
        },
        "controlName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Control unique name."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Description of the control."
        },
        "score": {
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ],
              "format": "double"
            },
            {
              "type": [
                "string",
                "null"
              ]
            },
            {
              "$ref": "#/$defs/ReferenceNumeric"
            }
          ],
          "description": "Tenant achieved score for the control (it varies day by day depending on tenant operations on the control)."
        },
        "@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.securityVendorInformation": {
      "title": "securityVendorInformation",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "provider": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specific provider (product/service - not vendor company); for example, WindowsDefenderATP."
        },
        "providerVersion": {
          "type": [
            "string",
            "null"
          ],
          "description": "Version of the provider or subprovider, if it exists, that generated the alert. Required"
        },
        "subProvider": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specific subprovider (under aggregating provider); for example, WindowsDefenderATP.SmartScreen."
        },
        "vendor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the alert vendor (for example, Microsoft, Dell, FireEye). Required"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}