{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-compute-rights-and-inheritance-result-schema.json",
  "title": "computeRightsAndInheritanceResult",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-tenantdatasecurityandgovernance-api-openapi.yml#/components/schemas/microsoft.graph.computeRightsAndInheritanceResult",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "contentRights": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/microsoft.graph.labelContentRight"
      },
      "x-ms-navigationProperty": true
    },
    "inheritedLabel": {
      "anyOf": [
        {
          "$ref": "#/$defs/microsoft.graph.sensitivityLabel"
        },
        {
          "type": [
            "object",
            "null"
          ]
        }
      ],
      "x-ms-navigationProperty": true
    },
    "sensitivityLabels": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/microsoft.graph.sensitivityLabel"
      },
      "x-ms-navigationProperty": true
    },
    "@odata.type": {
      "type": "string"
    }
  },
  "$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.labelContentRight": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "labelContentRight",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "cid": {
              "type": [
                "string",
                "null"
              ],
              "description": "The content identifier."
            },
            "format": {
              "type": [
                "string",
                "null"
              ],
              "description": "The content format."
            },
            "rights": {
              "$ref": "#/$defs/microsoft.graph.usageRights"
            },
            "label": {
              "$ref": "#/$defs/microsoft.graph.sensitivityLabel"
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.labelContentRight"
    },
    "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"
    }
  }
}