Moving an Identity Domain Between Compartments
Move identity domains between compartments in IAM.
You can move any identity domain between compartments within the same tenancy, except the Default identity domain. The Default identity domain can't be moved from the root compartment of the tenancy.
When you move a domain, all its resources are moved with it. For information about moving resources, see Moving a Resource Between Compartments.
- On the Domains list page, under List scope, select the compartment that contains the identity domain you want to move. If you need help finding the list page, see Listing Identity Domains.
- Select the name of the identity domain that you want to move.
- Select Move resource.
- Select a new compartment and then select Move resource.
Use the oci iam domain change-compartment command and required parameters to move an identity domain between compartments within the same tenancy:
oci iam domain change-compartment --compartment-id compartment_ocid --domain-id domain_ocid [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ChangeDomainCompartment operation to move an identity domain between compartments within the same tenancy.