title: Keycloak not sending verification email when REST API is used to create user. How to achieve this?
body: <p>There is a similar question around (<a href="https://stackoverflow.com/questions/62007767/keycloak-verify-users-email-using-rest-api">Keycloak - Verify user&#39;s email using Rest API</a>) which does not answer my question.</p>
  <p>When setting <code>Verify email</code> to <code>true</code> in the realm settings and registering a user through Keycloak an email is sent to the user. The template used is <code>email-verification.ftl</code>.</p>
  <p>When having the same realm setting but creating a user through the REST API <code>POST /{realm}/users</code> the email is <strong>not</strong> sent. There is a REST API method <code>PUT /{realm}/users/{id}/send-verify-email</code> available, but it uses a different email template <code>executeActions.ftl</code>.</p>
  <p>My expectation is Keycloak to send out an email 'normally' when the realm setting requires to verify your email. No matter whether you use the REST API or the UI.</p>
  <p>Is there any fix/workaround to this?</p>