{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-drive/json-schema/google-drive-google-apps-drive-labels-v2-label-permission-schema.json",
  "title": "GoogleAppsDriveLabelsV2LabelPermission",
  "description": "The permission that applies to a principal (user, group, audience) on a label.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-drive-drivelabels-labels-api-openapi.yml#/components/schemas/GoogleAppsDriveLabelsV2LabelPermission",
  "type": "object",
  "properties": {
    "audience": {
      "type": "string",
      "description": "Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label."
    },
    "role": {
      "enum": [
        "LABEL_ROLE_UNSPECIFIED",
        "READER",
        "APPLIER",
        "ORGANIZER",
        "EDITOR"
      ],
      "description": "The role the principal should have.",
      "type": "string"
    },
    "group": {
      "type": "string",
      "description": "Group resource name."
    },
    "name": {
      "type": "string",
      "description": "Resource name of this permission."
    },
    "person": {
      "description": "Person resource name.",
      "type": "string"
    },
    "email": {
      "description": "Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified.",
      "type": "string"
    }
  }
}