---
title: "uptimeify_sso_domain_verification"
description: "Verifies the SSO domain's DNS TXT record once (POST /api/organization/sso/verify-domain). Create fails with the expected and the found TXT values when the record is not visible yet; publish uptimeify_sso_oidc.verification_record and apply again. There is no waiting or retrying. Needs an organization admin token. Set domain = uptimeify_sso_oidc.<name>.domain, so a new domain verifies again in the same apply. A new issuer also resets the verification: the next plan shows this resource again. Destroying it changes nothing in Uptimeify. Import with the id sso."
---

Verifies the SSO domain's DNS TXT record once (`POST /api/organization/sso/verify-domain`). Create fails with the expected and the found TXT values when the record is not visible yet; publish `uptimeify_sso_oidc.verification_record` and apply again. There is no waiting or retrying. Needs an organization admin token.

Set `domain = uptimeify_sso_oidc.<name>.domain`, so a new domain verifies again in the same apply. A new `issuer` also resets the verification: the next plan shows this resource again. Destroying it changes nothing in Uptimeify. Import with the id `sso`.

## Example Usage

```terraform
# The TXT record from uptimeify_sso_oidc, published with your DNS provider.
resource "dns_txt_record_set" "sso" {
  zone = "example.com."
  name = trimsuffix(uptimeify_sso_oidc.corp.verification_record.name, ".example.com")
  txt  = [uptimeify_sso_oidc.corp.verification_record.value]
  ttl  = 300
}

# Verifies the TXT record once. Fails (no retry) while the record is not visible
# yet; apply again after DNS has propagated.
resource "uptimeify_sso_domain_verification" "corp" {
  domain     = uptimeify_sso_oidc.corp.domain
  depends_on = [dns_txt_record_set.sso]
}
```

## Schema

### Required

- `domain` (String) The SSO domain; changing it verifies again.

### Read-Only

- `id` (String) Always `sso`.

## Import

Import is supported using the following syntax:

The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:

```shell
# Always the id sso
terraform import uptimeify_sso_domain_verification.corp sso
```
