keenauth_organization_domain

The keenauth_organization_domain resource adds a domain to an organization. A verified domain lets users with an e-mail address in it join the organization and routes their sign-in to the organization's SSO connection.

resource "keenauth_organization_domain" "acme" {
  organization_id = keenauth_organization.acme.id
  domain          = "acme.example.com"
}

output "txt_record" {
  value = {
    name  = keenauth_organization_domain.acme.txt_record_name
    value = keenauth_organization_domain.acme.txt_record_value
  }
}

Verification

Capture and SSO routing

Lifecycle

Import

Import by ID or by <org_id>/<domain>:

tofu import keenauth_organization_domain.acme odm_01j9zq3v8c5m2x7k4t6r1n0b3d
tofu import keenauth_organization_domain.acme org_01j9zq3v8c5m2x7k4t6r1n0b3d/acme.example.com