okta / terraform-provider-okta

A Terraform provider to manage Okta resources, enabling infrastructure-as-code provisioning and management of users, groups, applications, and other Okta objects.
https://registry.terraform.io/providers/okta/okta
Mozilla Public License 2.0
251 stars 204 forks source link

add an attribute to make password mandatory on enrollment form #1923

Open chrisdlangham opened 5 months ago

chrisdlangham commented 5 months ago

Community Note

Description

It seems there isn't a way to set this flag for an enrollment policy.

image

New or Affected Resource(s)

-okta_policy_profile_enrollment -okta_policy_rule_profile_enrollment

Potential Terraform Configuration

resource "okta_policy_profile_enrollment" "enrollment_policy" {
  name   = "Enrollment Policy"
  status = "ACTIVE"
}

resource "okta_policy_rule_profile_enrollment" "enrollment_policy_rule" {
  policy_id           = okta_policy_profile_enrollment.enrollment_policy.id
  unknown_user_action = "REGISTER"
  pasword_mandatory = true
  profile_attributes {
    name      = "firstName"
    label       = "First Name"
    required = false
  }
  profile_attributes {
    name      = "lastName"
    label       = "Last Name"
    required = false
  }
  profile_attributes {
    name      = "email"
    label       = "Email"
    required = true
  }
}

References

duytiennguyen-okta commented 5 months ago

OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-705815