{
  "$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-schema.json",
  "title": "microsoft.graph.unifiedRoleManagementPolicy",
  "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.unifiedRoleManagementPolicy",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "unifiedRoleManagementPolicy",
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description for the policy."
        },
        "displayName": {
          "type": "string",
          "description": "Display name for the policy."
        },
        "isOrganizationDefault": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "This can only be set to true for a single tenant-wide policy which will apply to all scopes and roles. Set the scopeId to / and scopeType to Directory. Supports $filter (eq, ne)."
        },
        "lastModifiedBy": {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        "lastModifiedDateTime": {
          "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": "The time when the role setting was last modified.",
          "format": "date-time"
        },
        "scopeId": {
          "type": "string",
          "description": "The identifier of the scope where the policy is created. Can be / for the tenant or a group ID. Required."
        },
        "scopeType": {
          "type": "string",
          "description": "The type of the scope where the policy is created. One of Directory, DirectoryRole, Group. Required."
        },
        "effectiveRules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.unifiedRoleManagementPolicyRule"
          },
          "description": "The list of effective rules like approval rules and expiration rules evaluated based on inherited referenced rules. For example, if there is a tenant-wide policy to enforce enabling an approval rule, the effective rule will be to enable approval even if the policy has a rule to disable approval. Supports $expand.",
          "x-ms-navigationProperty": true
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.unifiedRoleManagementPolicyRule"
          },
          "description": "The collection of rules like approval rules and expiration rules. Supports $expand.",
          "x-ms-navigationProperty": true
        }
      },
      "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.identity": {
      "title": "identity",
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.unifiedRoleManagementPolicyRule": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "unifiedRoleManagementPolicyRule",
          "type": "object",
          "properties": {
            "target": {
              "$ref": "#/$defs/microsoft.graph.unifiedRoleManagementPolicyRuleTarget"
            }
          },
          "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"
    }
  }
}