<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"><<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>></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>
> Hi Bruno,<br>
><br>
> Not exactly, ideally I'd like to send a username over to Keycloak and have<br>
> it send the appropriate email to the user as the forgot your password page<br>
> does.<br>
><br>
> If that proves not to be possible then yes, a required action could be<br>
> viable workaround.<br>
><br>
> Cheers,<br>
> Tom<br>
><br>
> 2016-07-28 16:31 GMT+02:00 Bruno Oliveira <<a href="mailto:bruno@abstractj.org">bruno@abstractj.org</a>>:<br>
><br>
> > Hi Tom,<br>
> ><br>
> > I believe that what you're looking for is to setup a required action for<br>
> > your user[1]. Where a required action, could be "UPDATE_PASSWORD", for<br>
> > example.<br>
> ><br>
> ><br>
> > [1] -<br>
> > <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>
> ><br>
> > On 2016-07-28, Tom Pearson wrote:<br>
> > > Hi,<br>
> > ><br>
> > > Is there a way in the Rest Api to initiate the forgot password flow<br>
> > passing<br>
> > > over the username? Ideally the same thing the<br>
> > > */auth/realms/{realm}/login-actions/reset-credentials...<br>
> > > *form does.<br>
> > ><br>
> > > I know the */admin/realms/{realm}/users/{id}/reset-password *endpoint<br>
> > > exists but I can't even use it as a workaround as passing temporary=true<br>
> > > doesn't seem to force the user to reset their password on subsequent<br>
> > login.<br>
> > ><br>
> > > Would be great if something like<br>
> > > */admin/realms/{realm}/users/{id}/forgot-password<br>
> > > *were to exist.<br>
> > ><br>
> > > Best regards,<br>
> > > Tom<br>
> ><br>
> > > _______________________________________________<br>
> > > keycloak-user mailing list<br>
> > > <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> > > <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> ><br>
> ><br>
> > --<br>
> ><br>
> > abstractj<br>
> > PGP: 0x84DC9914<br>
> ><br>
<br>
</div></div>--<br>
<br>
abstractj<br>
PGP: 0x84DC9914<br>
</blockquote></div><br></div>