{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-power-automate/json-schema/microsoft-power-automate-flow-permission-list-schema.json",
  "title": "FlowPermissionList",
  "description": "A list of flow permissions.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-power-automate-flow-permissions-api-openapi.yml#/components/schemas/FlowPermissionList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The array of permissions.",
      "items": {
        "$ref": "#/$defs/FlowPermission"
      }
    }
  },
  "$defs": {
    "FlowPermission": {
      "type": "object",
      "description": "A flow permission entry.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The permission name."
        },
        "properties": {
          "type": "object",
          "properties": {
            "roleName": {
              "type": "string",
              "description": "The role name."
            },
            "principal": {
              "$ref": "#/$defs/Principal"
            }
          }
        }
      }
    },
    "Principal": {
      "type": "object",
      "description": "A user or service principal.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The object ID of the principal."
        },
        "displayName": {
          "type": "string",
          "description": "The display name."
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "The email address."
        },
        "type": {
          "type": "string",
          "description": "The principal type."
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant ID."
        },
        "userPrincipalName": {
          "type": "string",
          "description": "The user principal name."
        }
      }
    }
  }
}