PermissionChange

PermissionChange

A change of the permission setting on an item.

JSON representation
{

  "addedPermissions"
: 
[

    {

      object (
Permission
)

    }

  ]
,

  "removedPermissions"
: 
[

    {

      object (
Permission
)

    }

  ]

}
Fields
addedPermissions[]

object ( Permission )

The set of permissions added by this change.

removedPermissions[]

object ( Permission )

The set of permissions removed by this change.

Permission

The permission setting of an object.

JSON representation
{

  "role"
: 
enum (
Role
)
,

  "allowDiscovery"
: 
boolean
,


  // Union field 
scope
 can be only one of the following:

  "user"
: 
{

    object (
User
)

  }
,

  "group"
: 
{

    object (
Group
)

  }
,

  "domain"
: 
{

    object (
Domain
)

  }
,

  "anyone"
: 
{

    object (
Anyone
)

  }

  // End of list of possible types for union field 
scope
.

}
Fields
role

enum ( Role )

Indicates the Google Drive permissions role . The role determines a user's ability to read, write, and comment on items.

allowDiscovery

boolean

If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item.

Union field scope . The entity granted the role. scope can be only one of the following:
user

object ( User )

The user to whom this permission applies.

group

object ( Group )

The group to whom this permission applies.

domain

object ( Domain )

The domain to whom this permission applies.

anyone

object ( Anyone )

If set, this permission applies to anyone, even logged out users.

Role

The Google Drive permissions roles .

Enums
ROLE_UNSPECIFIED The role is not available.
OWNER A role granting full access.
ORGANIZER A role granting the ability to manage people and settings.
FILE_ORGANIZER A role granting the ability to contribute and manage content.
EDITOR A role granting the ability to contribute content. This role is sometimes also known as "writer".
COMMENTER A role granting the ability to view and comment on content.
VIEWER A role granting the ability to view content. This role is sometimes also known as "reader".
PUBLISHED_VIEWER A role granting the ability to view content only after it has been published to the web. This role is sometimes also known as "published reader". See https://support.google.com/sites/answer/6372880 for more information.

Anyone

Represents any user (including a logged out user).