Policy Inheritance

A basic policy feature is the concept of inheritance in IAM.

Compartments inherit any policies from a parent compartment. An example is the Administrators group, which automatically comes with your tenancy (see Understanding Administrator Roles).

The following is the built-in policy that lets the Administrators group (in the default identity domain) do anything in the tenancy:

Allow group Administrators to manage all-resources in tenancy

Because of policy inheritance, the Administrators group can also do anything in any of the compartments in the tenancy.

For example, consider a tenancy that has three levels of compartments: CompartmentA, CompartmentB, and ComparmentC.

Image shows CompartmentA. CompartmentB, CompartmentC hierarchy

Policies that apply to resources in CompartmentA also apply to resources in CompartmentB and CompartmentC.

The following example allows the group NetworkAdmins (in the default identity domain) to manage VCNs in CompartmentA, which also means that it can manage VCNs in CompartmentB, and CompartmentC.

Allow group default/NetworkAdmins to manage virtual-network-family in compartment CompartmentA