# IAM Conditions

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

IAM Conditions are Google Cloud rules that make a role binding, deny rule or boundary apply only when an attribute test passes. They support attribute-based access control on Google Cloud resources. The conditions are written in an expression language and checked at the time of each request.

## An example, sourced

Google's documentation says conditions can be used in allow policy role bindings, deny policy rules and Principal Access Boundary bindings, with attributes such as request.time and resource.name, and cannot be used with the legacy Owner, Editor and Viewer roles.

## Why it matters here

A condition narrows a grant by time, resource name or tag without making a new role. It is a useful tool when a predefined role is close but too wide.

## Related pages

- [Principal access boundary: meaning and an example](/glossary/principal-access-boundary/)
- [Deny policy: meaning and an example](/glossary/deny-policy/)
- [Policy validation: meaning and an example](/glossary/policy-validation/)
- [All of them](/glossary/)

## Sources

- https://cloud.google.com/iam/docs/conditions-overview (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://leastprivilegeprinciple.com/glossary/iam-conditions/
