{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ad/json-schema/azure-ad-microsoft-graph-unified-role-management-policy-rule-schema.json",
  "title": "microsoft.graph.unifiedRoleManagementPolicyRule",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ad-policies-unifiedrolemanagementpolicy-api-openapi.yml#/components/schemas/microsoft.graph.unifiedRoleManagementPolicyRule",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "unifiedRoleManagementPolicyRule",
      "type": "object",
      "properties": {
        "target": {
          "$ref": "#/$defs/microsoft.graph.unifiedRoleManagementPolicyRuleTarget"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.directoryObject": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "directoryObject",
          "type": "object",
          "properties": {
            "deletedDateTime": {
              "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": "Date and time when this object was deleted. Always null when the object hasn't been deleted.",
              "format": "date-time"
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.unifiedRoleManagementPolicyRuleTarget": {
      "title": "unifiedRoleManagementPolicyRuleTarget",
      "type": "object",
      "properties": {
        "caller": {
          "type": [
            "string",
            "null"
          ],
          "description": "The type of caller that's the target of the policy rule. Allowed values are: None, Admin, EndUser."
        },
        "enforcedSettings": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "The list of role settings that are enforced and cannot be overridden by child scopes. Use All for all settings."
        },
        "inheritableSettings": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "The list of role settings that can be inherited by child scopes. Use All for all settings."
        },
        "level": {
          "type": [
            "string",
            "null"
          ],
          "description": "The role assignment type that's the target of policy rule. Allowed values are: Eligibility, Assignment."
        },
        "operations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.unifiedRoleManagementPolicyRuleTargetOperations"
          },
          "description": "The role management operations that are the target of the policy rule. Allowed values are: All, Activate, Deactivate, Assign, Update, Remove, Extend, Renew."
        },
        "targetObjects": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.directoryObject"
          },
          "x-ms-navigationProperty": true
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.unifiedRoleManagementPolicyRuleTargetOperations": {
      "title": "unifiedRoleManagementPolicyRuleTargetOperations",
      "enum": [
        "all",
        "activate",
        "deactivate",
        "assign",
        "update",
        "remove",
        "extend",
        "renew",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}