Google Drive SDK

Permissions

For a list of methods for this resource, see the end of this page.

Resource representations

A permission for a file.

{
  "kind": "drive#permission",
  "etag": etag,
  "id": string,
  "selfLink": string,
  "name": string,
  "emailAddress": string,
  "domain": string,
  "role": string,
  "additionalRoles": [
    string
  ],
  "type": string,
  "value": string,
  "authKey": string,
  "withLink": boolean,
  "photoLink": string
}
Property name Value Description Notes
additionalRoles[] list Additional roles for this user. Only commenter is currently allowed. writable
authKey string The authkey parameter required for this permission.
domain string The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is user, group, or domain.
emailAddress string The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
etag etag The ETag of the permission.
id string The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources.
kind string This is always drive#permission.
name string The name for this permission.
role string The primary role for this user. Allowed values are:
  • owner
  • reader
  • writer


Acceptable values are:
  • "owner":
  • "reader":
  • "writer":
writable
type string The account type. Allowed values are:
  • user
  • group
  • domain
  • anyone


Acceptable values are:
  • "anyone":
  • "domain":
  • "group":
  • "user":
writable
value string The email address or domain name for the entity. This is not populated in responses. You can use the alias me as the value for this property to refer to the current authorized user. writable

Methods

delete
Deletes a permission from a file.
get
Gets a permission by ID.
getIdForEmail
Returns the permission ID for an email address.
insert
Inserts a permission for a file.
list
Lists a file's permissions.
patch
Updates a permission. This method supports patch semantics.
update
Updates a permission.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.