Google Drive · Schema

Permission

A permission for a file or shared drive.

Cloud StorageCollaborationDocument ManagementDriveFilesGoogleStorage

Properties

Name Type Description
id string The ID of the permission.
type string The type of grantee (user, group, domain, anyone).
role string The role granted by this permission (owner, organizer, fileOrganizer, writer, commenter, reader).
emailAddress string The email address of the grantee, if applicable.
domain string The domain to which the permission applies, if applicable.
View JSON Schema on GitHub

JSON Schema

google-drive-permission-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Permission",
  "title": "Permission",
  "type": "object",
  "description": "A permission for a file or shared drive.",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the permission."
    },
    "type": {
      "type": "string",
      "description": "The type of grantee (user, group, domain, anyone)."
    },
    "role": {
      "type": "string",
      "description": "The role granted by this permission (owner, organizer, fileOrganizer, writer, commenter, reader)."
    },
    "emailAddress": {
      "type": "string",
      "description": "The email address of the grantee, if applicable."
    },
    "domain": {
      "type": "string",
      "description": "The domain to which the permission applies, if applicable."
    }
  }
}