Adding Apigee IAM Conditions to policies

This pageapplies toApigee andApigee hybrid.

View Apigee Edge documentation.

This page describes how to add IAM Conditions to your Apigee resources. An IAM Conditionlets you have granular control over your Apigee resources.

Before you begin

Apigee uses Google Cloud'sIdentity and Access Management (IAM)to manage roles and permissions for Apigee's resources. Therefore, before you specify ormodify conditions in IAM for your Apigee resources, familiarize yourself with the following IAM concepts:

Adding IAM Conditions

To add an IAM condition to an Apigee resource, you need the following information:

Examples

The table lists a few sample resource conditions and the corresponding permissions:

ConditionDescription
resource.name.startsWith("organizations/{org-name}/apis/catalog-") || resource.type == "cloudresourcemanager.googleapis.com/Project"

This condition provides the following permissions:

  • List all proxies
  • Get, Create, Update, and Delete operations on API proxies whose name starts withcatalog-.
  • All operations on theRevision andKeyValueMap resources belonging to thecatalog-* API proxies.
(resource.name.startsWith("organizations/{org-name}/apis/catalog-proxy/keyvaluemaps") &&resource.type == "apigee.googleapis.com/KeyValueMap") || resource.type == "cloudresourcemanager.googleapis.com/Project"This condition provides permissions for Get, Create, Update, and Delete operations on KeyValueMaps in thecatalog-proxy API proxy.
resource.type == "apigee.googleapis.com/Proxy" || resource.type == "cloudresourcemanager.googleapis.com/Project"This condition provides permissions for List, Get, Create, Update, and Delete operations on all API proxies.
Note: For all your resource conditions, you must include the following condition so that the Apigee UI can enforce the IAM conditions properly:
resource.type == "cloudresourcemanager.googleapis.com/Project"
Note: Users must have following additional permissions to view proxy deployments in the UI when providing fine-grained access for particular business unit or teams based on conditions:
  • apigee.deployments.get
  • apigee.deployments.list
  • apigee.environments.get
  • apigee.environments.list

What's next

Go through the following information in the IAM documentation:

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.