How to Enable Phone Attribute as Identifier via Terraform

Overview

This article details how to enable phone attribute as an identifier during login in the custom database via Terraform.

Applies To

  • Terraform
  • Phone Attribute
  • Identifier

Solution

This will apply to any attribute/property, but this can be done in a self-service manner by configuring the target property in a testing tenant, e.g., for phone attribute, these instructions can be followed: Activate and Configure Attributes for Flexible Identifiers

Once the testing tenant is configured, use Terraform to export the configuration (auto-generate the Terraform config) and observe what the new config requirements look like. Then, that can be implemented in the main Terraform configuration Auto-generating Terraform config files from the Auth0 tenant.