terraform-provider-keycloak
terraform-provider-keycloak copied to clipboard
Trigger sending of email when keycloak_user resource is created.
There is an API call to trigger the sending of emails to verify addresses, I think when the email address is set to "No" the resource should attempt to trigger the API to send such email.
resource "keycloak_user" "user" {
realm_id = keycloak_realm.realm.id
username = "bob"
enabled = true
email = "[email protected]"
email_verified = false
first_name = "Bob"
last_name = "Bobson"
}
API Docs https://www.keycloak.org/docs-api/11.0/rest-api/#_users_resource Path: PUT /{realm}/users/{id}/execute-actions-email/send-verify-email