PermissionChange
A change of the permission setting on an item.
JSON representation |
---|
{ "addedPermissions": [ { object ( |
Fields | |
---|---|
addedPermissions[]
|
The set of permissions added by this change. |
removedPermissions[]
|
The set of permissions removed by this change. |
Permission
The permission setting of an object.
JSON representation |
---|
{ "role": enum ( |
Fields | |
---|---|
role
|
Indicates the Google Drive permissions role. The role determines a user's ability to read, write, and comment on items. |
allowDiscovery
|
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
|
The user to whom this permission applies. |
group
|
The group to whom this permission applies. |
domain
|
The domain to whom this permission applies. |
anyone
|
If set, this permission applies to anyone, even logged out users. |
Role
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
This type has no fields.
Represents any user (including a logged out user).