{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ad/json-schema/azure-ad-microsoft-graph-sensitivity-label-schema.json",
  "title": "microsoft.graph.sensitivityLabel",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ad-users-userdatasecurityandgovernance-api-openapi.yml#/components/schemas/microsoft.graph.sensitivityLabel",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "sensitivityLabel",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "actionSource": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.labelActionSource"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ]
        },
        "applicationMode": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.applicationMode"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ]
        },
        "autoTooltip": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ]
        },
        "hasProtection": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "isDefault": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "isEndpointProtectionEnabled": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "isScopedToUser": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "locale": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "priority": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "format": "int32"
        },
        "toolTip": {
          "type": [
            "string",
            "null"
          ]
        },
        "rights": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.usageRightsIncluded"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "x-ms-navigationProperty": true
        },
        "sublabels": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.sensitivityLabel"
          },
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.sensitivityLabel",
  "$defs": {
    "microsoft.graph.applicationMode": {
      "title": "applicationMode",
      "enum": [
        "manual",
        "automatic",
        "recommended",
        "unknownFutureValue"
      ],
      "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.labelActionSource": {
      "title": "labelActionSource",
      "enum": [
        "manual",
        "automatic",
        "recommended",
        "none",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.sensitivityLabel": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "sensitivityLabel",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "actionSource": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.labelActionSource"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ]
            },
            "applicationMode": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.applicationMode"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ]
            },
            "autoTooltip": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "displayName": {
              "type": [
                "string",
                "null"
              ]
            },
            "hasProtection": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "isDefault": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "isEndpointProtectionEnabled": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "isScopedToUser": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "locale": {
              "type": [
                "string",
                "null"
              ]
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "priority": {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": [
                "number",
                "null"
              ],
              "format": "int32"
            },
            "toolTip": {
              "type": [
                "string",
                "null"
              ]
            },
            "rights": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.usageRightsIncluded"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "x-ms-navigationProperty": true
            },
            "sublabels": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.sensitivityLabel"
              },
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.sensitivityLabel"
    },
    "microsoft.graph.usageRights": {
      "title": "usageRights",
      "enum": [
        "unknown",
        "docEdit",
        "edit",
        "comment",
        "export",
        "forward",
        "owner",
        "print",
        "reply",
        "replyAll",
        "view",
        "extract",
        "viewRightsData",
        "editRightsData",
        "objModel",
        "accessDenied",
        "userDefinedProtectionTypeNotSupportedException",
        "encryptedProtectionTypeNotSupportedException",
        "purviewClaimsChallengeNotSupportedException",
        "exception",
        "labelNotFoundException",
        "unknownFutureValue"
      ],
      "type": "string",
      "x-ms-enum-flags": {
        "isFlags": true
      }
    },
    "microsoft.graph.usageRightsIncluded": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "usageRightsIncluded",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "ownerEmail": {
              "type": [
                "string",
                "null"
              ],
              "description": "The email of owner label rights."
            },
            "userEmail": {
              "type": [
                "string",
                "null"
              ],
              "description": "The email of user with label user rights."
            },
            "value": {
              "$ref": "#/$defs/microsoft.graph.usageRights"
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.usageRightsIncluded"
    }
  }
}