- INFORMATION
- 
gcloud iam policies updateis supported in universe domainuniverse; however, some of the values used in the help text may not be available. Command examples may not work as-is and may requires changes before execution.
- NAME
- 
- gcloud iam policies update - update the policy on the given attachment point with the given name
 
- SYNOPSIS
- 
- 
gcloud iam policies updatePOLICY_ID--attachment-point=ATTACHMENT_POINT--kind=KIND--policy-file=POLICY_FILE[--etag=ETAG] [GCLOUD_WIDE_FLAG …]
 
- 
- DESCRIPTION
- Update the policy on the given attachment point with the given name.
- EXAMPLES
- 
The following command updates the IAM policy
my-deny-policy123abcgcloud iam policies update my-deny-policy --attachment-point=cloudresourcemanager.googleapis.com/projects/123 --kind=denypolicies --policy-file=policy.json --etag=abc
- POSITIONAL ARGUMENTS
- 
- POLICY_ID
- Policy ID that is unique for the resource to which the policy is attached.
 
- REQUIRED FLAGS
- 
- --attachment-point=- ATTACHMENT_POINT
- Resource to which the policy is attached. For valid formats, see https://cloud.google.com/iam/help/deny/attachment-point.
- --kind=- KIND
- 
Policy type. Use denypoliciesfor deny policies.
- --policy-file=- POLICY_FILE
- Path to the file that contains the policy, in JSON or YAML format. For valid syntax, see https://cloud.google.com/iam/help/deny/policy-syntax.
 
- OPTIONAL FLAGS
- 
- --etag=- ETAG
- 
Etag that identifies the version of the existing policy. It can be obtained by
running gcloud iam policies get. When deleting a policy, if the etag is omitted, the policy is deleted regardless of its current etag. When updating a policy, if the etag is omitted, the update uses the etag provided in the policy file.
 
- GCLOUD WIDE FLAGS
- 
These flags are available to all commands: --access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run $ gcloud helpfor details.
- NOTES
- 
These variants are also available:
gcloud alpha iam policies updategcloud beta iam policies update
      gcloud iam policies update
  
  
  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 2025-05-07 UTC.
  
  
    
      [[["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 2025-05-07 UTC."],[],[]]