The permission that applies to a principal (user, group, audience) on a label.
JSON representation
{"name": string,"email": string,"role": enum (LabelRole),// Union field principal can be only one of the following:"person": string,"group": string,"audience": string// End of list of possible types for union field principal.}
Fields
name
string
Resource name of this permission.
email
string
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.
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
string
Person resource name.
group
string
Group resource name.
audience
string
Audience to grant a role to. The magic value of audiences/default may be used to apply the role to the default audience in the context of the organization that owns the Label.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-04 UTC."],[[["LabelPermission defines permissions for users, groups, or audiences on a label."],["These permissions can be managed through methods like creating, updating, deleting, and listing."],["Each permission is associated with a principal (person, group, or audience) and a specific role."],["Permissions can be applied to the default audience within the label's organization using `audiences/default`."]]],["LabelPermissions define access for users, groups, or audiences on a label. A permission includes a `name`, `email`, and `role`. The `principal` field specifies whether the permission is for a `person`, `group`, or `audience`. Methods allow for managing permissions through `create`, `delete`, `batchDelete`, `batchUpdate`, and `list` actions. `Email` can only be used to insert permissions for users or groups.\n"]]