The etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to policies.get, and systems are expected to put that etag in the request to policies.set to ensure that their change will be applied to the same version of the policy.
If no etag is provided in the call to policies.get, then the existing policy is overwritten blindly.
A base64-encoded string.
Assignment
Associates members with a role.
JSON representation
{"role": string,"members": [string]}
Fields
role
string
Required. Role that is assigned to members.
members[]
string
The identities the role is assigned to. It can have the following values:
{user_email}: An email address that represents a specific Google account. For example: alice@gmail.com.
{group_email}: An email address that represents a Google group. For example, viewers@gmail.com.
[[["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 2023-12-05 UTC."],[],["The content defines access control policies for resources using JSON. A policy includes an array of \"assignments\" and an \"etag\" for concurrency control. Assignments link \"members\" to a specified \"role,\" with members being Google account emails or group emails. Systems use the etag in read-modify-write cycles to prevent overwriting. The \"role\" field is a required string, and members represent identities granted the specified role.\n"]]