My Oracle Support Banner

Unable To Create a Policy In A Compartment - Error:InvalidParameter - The compartment CompartmentX specified in the policy statement does not exist under current compartment hierarchy (Doc ID 2429862.1)

Last updated on OCTOBER 13, 2023

Applies to:

Oracle Cloud Infrastructure - Version N/A and later
Information in this document applies to any platform.

Symptoms

Attempts to create a policy like:

  "ALLOW GROUP AdminGroup to manage all-resources IN compartment CompartmentX"

fails with the error:

  Error:InvalidParameter - The compartment CompartmentX specified in the policy statement does not exist under current compartment hierarchy.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.