<div dir="ltr">Yup, the execute-actions-email looks like it should do the trick :) <div><div><br></div><div>Cheers</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-28 17:53 GMT+02:00 Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Gotcha, in this case, I would look at this[1].<br>
<br>
[1] - <a href="https://github.com/keycloak/keycloak/blob/master/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/UserResource.java#L87-L107" rel="noreferrer" target="_blank">https://github.com/keycloak/keycloak/blob/master/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/UserResource.java#L87-L107</a><br>
<div><div class="h5"><br>
On 2016-07-28, Tom Pearson wrote:<br>
&gt; Hi Bruno,<br>
&gt;<br>
&gt; Not exactly, ideally I&#39;d like to send a username over to Keycloak and have<br>
&gt; it send the appropriate email to the user as the forgot your password page<br>
&gt; does.<br>
&gt;<br>
&gt; If that proves not to be possible then yes, a required action could be<br>
&gt; viable workaround.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Tom<br>
&gt;<br>
&gt; 2016-07-28 16:31 GMT+02:00 Bruno Oliveira &lt;<a href="mailto:bruno@abstractj.org">bruno@abstractj.org</a>&gt;:<br>
&gt;<br>
&gt; &gt; Hi Tom,<br>
&gt; &gt;<br>
&gt; &gt; I believe that what you&#39;re looking for is to setup a required action for<br>
&gt; &gt; your user[1]. Where a required action, could be &quot;UPDATE_PASSWORD&quot;, for<br>
&gt; &gt; example.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; [1] -<br>
&gt; &gt; <a href="http://www.keycloak.org/docs/rest-api/index.html#_update_required_action" rel="noreferrer" target="_blank">http://www.keycloak.org/docs/rest-api/index.html#_update_required_action</a><br>
&gt; &gt;<br>
&gt; &gt; On 2016-07-28, Tom Pearson wrote:<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Is there a way in the Rest Api to initiate the forgot password flow<br>
&gt; &gt; passing<br>
&gt; &gt; &gt; over the username? Ideally the same thing the<br>
&gt; &gt; &gt; */auth/realms/{realm}/login-actions/reset-credentials...<br>
&gt; &gt; &gt; *form does.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I know the */admin/realms/{realm}/users/{id}/reset-password *endpoint<br>
&gt; &gt; &gt; exists but I can&#39;t even use it as a workaround as passing temporary=true<br>
&gt; &gt; &gt; doesn&#39;t seem to force the user to reset their password on subsequent<br>
&gt; &gt; login.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Would be great if something like<br>
&gt; &gt; &gt; */admin/realms/{realm}/users/{id}/forgot-password<br>
&gt; &gt; &gt; *were to exist.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Best regards,<br>
&gt; &gt; &gt; Tom<br>
&gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; keycloak-user mailing list<br>
&gt; &gt; &gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt;<br>
&gt; &gt; abstractj<br>
&gt; &gt; PGP: 0x84DC9914<br>
&gt; &gt;<br>
<br>
</div></div>--<br>
<br>
abstractj<br>
PGP: 0x84DC9914<br>
</blockquote></div><br></div>