PermissionChange
Stay organized with collections
Save and categorize content based on your preferences.
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
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".
|
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).
Except as otherwise noted, the content of this page is licensed under the
Creative Commons Attribution 4.0 License
, and code samples are licensed under the
Apache 2.0 License
. For details, see the
Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-12 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]