{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unity-catalog/json-schema/unity-catalog-permissions-list-schema.json",
  "title": "PermissionsList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unity-catalog-grants-api-openapi.yml#/components/schemas/PermissionsList",
  "type": "object",
  "properties": {
    "privilege_assignments": {
      "description": "The privileges assigned to each principal.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PrivilegeAssignment"
      }
    }
  },
  "required": [
    "privilege_assignments"
  ],
  "$defs": {
    "Privilege": {
      "description": "The privilege to grant.",
      "type": "string",
      "enum": [
        "CREATE CATALOG",
        "USE CATALOG",
        "CREATE SCHEMA",
        "USE SCHEMA",
        "CREATE TABLE",
        "SELECT",
        "MODIFY",
        "CREATE FUNCTION",
        "EXECUTE",
        "CREATE VOLUME",
        "READ VOLUME",
        "CREATE MODEL",
        "CREATE EXTERNAL LOCATION",
        "READ FILES",
        "WRITE FILES",
        "CREATE EXTERNAL TABLE",
        "CREATE EXTERNAL VOLUME",
        "CREATE MANAGED STORAGE",
        "CREATE STORAGE CREDENTIAL"
      ],
      "x-enum-descriptions": [
        "CREATE CATALOG: Enables users to create new catalogs in a metastore.",
        "USE CATALOG: Required to interact with any object within a catalog.",
        "CREATE SCHEMA: Enables users to create new schemas in a catalog.",
        "USE SCHEMA: Required to interact with any object within a schema.",
        "CREATE TABLE: Allows creating tables or views in a schema.",
        "SELECT: Enables querying tables, views, materialized views.",
        "MODIFY: Enables adding, updating, and deleting data within tables (requires SELECT privilege also).",
        "CREATE FUNCTION: Allows users to create functions or procedures within a schema.",
        "EXECUTE: Permits invoking user-defined functions or loading models for inference.",
        "CREATE VOLUME: Enables creating volumes in a schema.",
        "READ VOLUME: Permits reading files and directories within volumes.",
        "CREATE MODEL: Permits establishing MLflow registered models in a schema.",
        "CREATE EXTERNAL LOCATION: Required privilege on both the metastore and referenced storage credential to create external locations.",
        "READ FILES: Grants direct read access to files in cloud storage configured as external locations.",
        "WRITE FILES: Grants direct write access to files in cloud storage configured as external locations.",
        "CREATE EXTERNAL TABLE: Enables creating external tables through external locations.",
        "CREATE EXTERNAL VOLUME: Enables creating external volumes through external locations.",
        "CREATE MANAGED STORAGE: Allows designating managed storage locations at catalog or schema levels.",
        "CREATE STORAGE CREDENTIAL: Required privilege on the metastore to create storage credentials."
      ]
    },
    "PrivilegeAssignment": {
      "type": "object",
      "properties": {
        "principal": {
          "description": "The principal (user email address or group name).",
          "type": "string"
        },
        "privileges": {
          "description": "The privileges assigned to the principal.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Privilege"
          }
        }
      },
      "required": [
        "principal",
        "privileges"
      ]
    }
  }
}