Resource: LabelPermission
The permission that applies to a principal (user, group, audience) on a label.
JSON representation |
---|
{ "name": string, "email": string, "role": enum ( |
Fields | |
---|---|
name |
Resource name of this permission. |
email |
Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified. |
role |
The role the principal should have. |
Union field principal . The principal this permission applies to. Must be either an email, user, group, or audience. Example: * people/12345 * groups/45678 * audiences/default principal can be only one of the following: |
|
person |
Person resource name. |
group |
Group resource name. |
audience |
Audience to grant a role to. The magic value of |
LabelRole
Roles are concentric with subsequent role. LINT.IfChange(LabelRole)
Enums | |
---|---|
LABEL_ROLE_UNSPECIFIED |
Unknown role. |
READER |
A reader can read the label and associated metadata applied to Drive items. |
APPLIER |
An applier can write associated metadata on Drive items in which they also have write access to. Implies READER . |
ORGANIZER |
An organizer can pin this label in shared drives they manage and add new appliers to the label. |
EDITOR |
Editors can make any update including deleting the label which also deletes the associated Drive item metadata. Implies APPLIER . |
Methods |
|
---|---|
|
Deletes Label permissions. |
|
Updates Label permissions. |
|
Updates a Label's permissions. |
|
Deletes a Label's permission. |
|
Lists a Label's permissions. |