Skip to content
Back to blog
AI Tools

GCP IAM Deny Policy: Unified Access Policies Preview

A GCP IAM deny policy and allow rules now live in one policy. Unified Access Policies are in preview from November 21, 2026, at no extra cost. See limits.

6 min readAI Tools
Unified Access PoliciesGoogle Cloud IAMGCP access managementAI agent permissionsIAM deny policy
GCP IAM Deny Policy: Unified Access Policies Preview

A GCP IAM deny policy no longer has to live apart from your allow rules. Google Cloud Unified Access Policies (UAP) is a new access control method that writes allow rules and deny rules together in one policy, then binds that policy to many organizations, folders and projects. Google Cloud announced it as a preview on the official blog on November 21, 2026, and there is no extra cost. If your allow and deny policies already work well, you do not need to migrate in a hurry. The official docs also say existing users can keep using them.

Unified Access Policies are a new IAM policy type in Google Cloud. You write allow and deny rules in one policy, create it, then apply it to targets through bindings. It is in preview.

One policy holds up to 100 rules and 64KB, and one resource can have up to 5 policies attached. The announcement says one policy can be bound to up to 25 projects, folders or organizations, while a separate doc says 5 per binding, so the two sources disagree.

Teams building a new organization or needing fine-grained conditional permissions can try it in a test project first. Teams whose current policies work fine can leave them as they are.

GCP IAM deny policy: what was painful until now

Until now, Google Cloud access control had separate allow policies and deny policies, and each policy was a document attached to a single resource. The announcement lists three pain points. First, allow and deny use different syntax, so defining permissions for one job means learning both. That hassle pushes people to grant broad roles wholesale. Second, policies are per resource, so applying the same standard to 25 projects means copying and managing 50 allow and deny settings in Terraform (a tool that manages infrastructure as code). Third, large enterprises often hit the 64KB size limit of a single allow policy, so they must split policies again each time they add a new team or agent.

Policy settings to manage when applying one standard to 25 projects (announcement example)
ApproachSettings
Existing allow and deny policies (copied per project)50
Unified Access Policies (1 policy definition)1

The announcement uses this example to explain the structure: keep one policy definition and attach it to many projects through bindings.

Unified Access Policies target each of these three problems. They put allow and deny in one policy, separate the policy definition from its targets, and allow 5 policies per resource, which raises the effective limit.

Unified Access Policies at a glance: limits and numbers

The table below shows the preview limits listed in the announcement and the official docs.

Unified Access Policies preview limits (as of November 21, 2026)
ItemValue
Size of one policy64KB
Rules per policy100
UAP policies per resource5
Unique principals / groups per resource2,500 / 500
Targets per policy (announcement)Up to 25 organizations, folders or projects
Targets per binding (official docs)Up to 5 resources
CostNo extra cost during preview

The binding target numbers differ between the announcement (25) and the docs (5). A team that wants to attach to many targets at once should check the real limit in a test project first. Besides projects, folders and organizations, the docs also list AI applications in Agent Registry and the agent gateway as binding targets.

How to create a policy: build it in the console and bind it

The console takes three steps. The announcement shows this order.

  1. In IAM & Admin > IAM, pick an organization, folder or project, open the Unified Access Policies tab and click + Create policy.
  2. Enter a policy name and ID, then add rules. For each rule, set the principal, any exception principals, and allow or deny.
  3. In the apply step, choose the target scope and click Bind policy.

The list screen in the first step shows in one table where each policy is managed and where it applies. In the figure below, the "Managed at" column for policies attached to the project shows where the policy was created. The "Enforcement" column shows whether it is inherited from a parent organization or folder.

GCP IAM deny policy list screen in Google Cloud Unified Access Policies, showing project policies and inheritance
Figure 1. The Unified Access Policies tab in IAM. Policy ID, management location and inheritance appear in one table. Source: Google Cloud blog, November 21, 2026

The second step is the core of this feature. In the screen below, rule 1 allows the developer group and an operations agent the roles/compute.viewer role and compute.googleapis.com/instances.* permissions, except instances.delete, and excludes a temporary contractor account as an exception principal. Rule 2 denies compute.googleapis.com/firewalls.* and exempts only the SRE emergency group. Because allow and deny sit in the same policy, you can read a rule set like "allow everything except delete, deny all firewall changes" in a single document.

GCP IAM deny policy create screen in Google Cloud Unified Access Policies, with allow and deny rules in one policy
Figure 2. The policy creation screen. Rule 1 is an allow (delete permission excluded) and rule 2 is a firewall deny. Source: Google Cloud blog, November 21, 2026

A policy you create does not apply to any target until it is bound. A binding is a separate object from the policy, and one policy can have many bindings, so you can apply the same standard to many projects at once. When you bind a policy that has deny rules, the screen tells you to check existing access first. A bound policy applies to that resource and all of its child resources.

GCP IAM deny policy binding screen in Google Cloud Unified Access Policies, attaching a policy to a target resource
Figure 3. The Bindings tab in policy details and the Add binding window. You enter the binding location and binding ID. Source: Google Cloud blog, November 21, 2026

Besides the console, the gcloud command line, the Cloud IAM v3 REST API and Terraform support the same features. The console's "Show as JSON" and "View JSON" let you export the code form and move it into a pipeline. The announcement and the docs overview page have no command examples, so to automate this you need to follow the "Create and apply UAPs" guide in the docs separately.

Rule evaluation and limits: deny wins, and roles work only in allow rules

According to the official docs, at runtime Cloud IAM evaluates existing allow policies, deny policies and Unified Access Policies together. A UAP deny rule on a parent resource blocks that principal even if a UAP on a child resource allows access. The docs do not spell out the full evaluation order, so before mixing UAP with existing policies, check the result with Policy Troubleshooter. This tool supports all three policy types.

Known limits of the Unified Access Policies preview (per the official docs)
LimitMeaning
Roles only in allow rulesDeny rules use individual permissions or wildcards
Custom roles not supportedNo rule can use a custom role
Wildcards only for permission groups that deny policies supportPrefix, suffix and substring wildcards are available depending on the service
Conditions attach to rules, not to bindingsCondition attributes work only with certain permissions, and a wrong one makes policy creation fail
Deleting a policy that has bindings is an errorIf you force delete, the remaining bindings keep counting toward the per-resource limit
No cross-organization bindingsIAM eventually deletes existing cross-organization bindings

If the organization policy constraint iam.managed.disableAccessPolicyBinding is on, creating bindings is blocked. When a binding fails, check this constraint first.

Agents as principals: managing AI agent permissions

The announcement stresses that this feature treats AI agents as principals, not only people and service accounts. The principal://agents.global... format in the screen example is an agent principal. The announcement says you can apply least-privilege allow and deny rules to individual agents or groups of agents instead of treating them as ordinary service accounts. It also describes pairing this with short-lived, scoped tokens. The tool for checking agent permissions is covered in Google Cloud IAM helper agent skills, and the risk of an agent moving to other resources through IAM permissions is covered in how to check AI agent IAM lateral movement. If the earlier post is about diagnosing 403 errors and trimming permissions, UAP is the place to write those trimmed permissions down as rules.

Who should use it and when: existing policies or UAP

Choice by situation (based on official docs guidance)
SituationChoice
Organizations already using allow and deny policies wellKeep using them. The docs say so
Teams building a new organizationConsider UAP first (docs recommendation)
Teams needing fine-grained conditional permissionsConsider UAP (docs recommendation)
Teams with many projects copying the same policyBind one policy to several targets in a test project
Teams using many custom rolesHard to move now. UAP does not support custom roles

The preview falls under the pre-GA (general availability) terms, is provided "as is" and may have limited support. Do not move the core permissions of a production organization all at once. A safer order is to create one policy in a test project, bind it, and confirm with Policy Troubleshooter that only the intended access opens.

Here is how to check it yourself. In a test project, create one policy with one allow rule and one deny rule, and bind it to that project. Then enter a test principal and a permission in Policy Troubleshooter and see whether the allowed permission shows as allowed and the denied permission shows as denied. Query the same permission with an account from the exception group and compare whether the deny is lifted. If only the allowed actions work and the denied permission is blocked for everyone except the exception principals, the test passes.

Frequently asked questions

Do existing allow and deny policies go away if I use Unified Access Policies?

No. All three types are supported and evaluated together at runtime. The docs tell organizations that already use them to keep using their existing policies.

Does Unified Access Policies cost extra?

The announcement says there is no extra cost during the preview. Use of the preview follows the pre-GA terms.

Can a wrong policy block access?

A deny rule set on a parent blocks access even if a child allows it. Before binding, check existing access and consider setting an emergency group as an exception principal.

Found this useful? Share it

Latest posts

Related projects

Get new posts by email

Insights on marketing, analytics, and dev, delivered to your inbox.