variable "user_email" { type = string } resource "oci_identity_user" "this" { compartment_id = local.child_compartment_id description = "The user for Terraform to use" name = "terraform" email = var.user_email } locals { child_compartment_user = oci_identity_user.this.id } output "child_user_id" { value = local.child_compartment_user }