Policy Statements Limit per Compartment Hierarchy
Oracle Cloud Infrastructure enforces a limit on the number of policy statements that can exist along a single compartment path, from the root compartment down to any leaf compartment.
The maximum number of policy statements allowed from the root compartment to any leaf compartment is 500. This limit includes all policy statements defined at every level of the compartment hierarchy along that path.
For example, if a tenancy has a compartment hierarchy such as:
- Root
- Compartment A
- Compartment B
- Compartment C
- Compartment B
- Compartment A
However, if a tenancy has peer compartments such as:
- Root
- Compartment A
- Compartment B
- Compartment C
Note
The limit of 500 policy statements per compartment hierarchy is a hard limit that can't be increased. To avoid breaching policy limits, we recommend using Tag-Based Access Control (TBAC), which allows you to write one policy for many scenarios with a single statement. To learn more about TBAC, see Using Tags to Manage Access.