keycloak / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
Apache License 2.0
648 stars 317 forks source link

add support for unmanagedAttributePolicy in user profile #976

Open ili16 opened 4 months ago

ili16 commented 4 months ago

This PR extends the resource keycloak_realm_user_profile with the attribute unmanagedAttributePolicy which can be ommited or used with the values "DISABLED,ENABLED,ADMIN_VIEW,ADMIN_EDIT". I kept the changes as simple as possible in order to not break any legacy stuff even more than it currently is. It closes #946

I did have to add the mandatory fields "username" and "email" to the user profile if one chooses to delete the user profile. This does have the adverse effect that creating a new realm has a different user profile config than creating a new realm and then deleting the user profile.