{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ad/json-schema/azure-ad-microsoft-graph-ownerless-group-policy-schema.json",
  "title": "microsoft.graph.ownerlessGroupPolicy",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ad-policies-ownerlessgrouppolicy-api-openapi.yml#/components/schemas/microsoft.graph.ownerlessGroupPolicy",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "ownerlessGroupPolicy",
      "type": "object",
      "properties": {
        "emailInfo": {
          "$ref": "#/$defs/microsoft.graph.emailDetails"
        },
        "enabledGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The collection of IDs for groups to which the policy is enabled. If empty, the policy is enabled for all groups in the tenant."
        },
        "isEnabled": {
          "type": "boolean",
          "description": "Indicates whether the ownerless group policy is enabled in the tenant. Setting this property to false clears the values of all other policy parameters."
        },
        "maxMembersToNotify": {
          "type": "number",
          "description": "The maximum number of members to notify. Value range is 0-90. Members are prioritized by recent group activity (most active first). If there aren't enough active members to fill the limit, remaining slots are filled with other eligible group members from the directory.",
          "format": "int64"
        },
        "notificationDurationInWeeks": {
          "type": "number",
          "description": "The number of weeks for the notification duration. Value range is 1-7.",
          "format": "int64"
        },
        "policyWebUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "The URL to the policy documentation."
        },
        "targetOwners": {
          "$ref": "#/$defs/microsoft.graph.targetOwners"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.emailDetails": {
      "title": "emailDetails",
      "type": "object",
      "properties": {
        "body": {
          "type": "string",
          "description": "The body content of the notification email in plain text format."
        },
        "senderEmailAddress": {
          "type": "string",
          "description": "The email address of the sender for notification emails. Shared mailboxes aren't supported."
        },
        "subject": {
          "type": "string",
          "description": "The subject line of the notification email."
        }
      },
      "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.notifyMembers": {
      "title": "notifyMembers",
      "enum": [
        "all",
        "allowSelected",
        "blockSelected",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.targetOwners": {
      "title": "targetOwners",
      "type": "object",
      "properties": {
        "notifyMembers": {
          "$ref": "#/$defs/microsoft.graph.notifyMembers"
        },
        "securityGroups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The collection of IDs for security groups used for allowing or blocking filtering. When notifyMembers is all, all members are eligible for ownership and this collection can be empty. When notifyMembers is allowSelected, only members in these security groups are eligible. When notifyMembers is blockSelected, members in these security groups are excluded."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  }
}