<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Yes, see the other mail I've posted in
this thread (If you mean the usecase, that when user is registered
in Keycloak, your federationStorage will be notified and some info
about user from Keycloak will be propagated to the
federationStorage too).<br>
<br>
Marek<br>
<br>
On 04/05/16 10:05, Niels Bertram wrote:<br>
</div>
<blockquote
cite="mid:044F82A0-7625-44F1-AFB8-2912F4DAF29C@gmail.com"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<div>Is there a way to register a synchronisation callback of some
sort with keycloak to ensure the user is replicates back into
the user database as well? That would be a mighty useful
capability especially in corporate environments where the good
old user table cannot be removed for whatever reason. Thanks
Niels</div>
<div><br>
On 4 May 2016, at 16:08, Stian Thorgersen <<a
moz-do-not-send="true" href="mailto:sthorger@redhat.com"><a class="moz-txt-link-abbreviated" href="mailto:sthorger@redhat.com">sthorger@redhat.com</a></a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">Not sure I'm following. Keycloak can sync users
created from your database, but it can't write users back.
New users created in Keycloak directly are only stored in
Keycloaks database.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 29 April 2016 at 23:52, Juan
Diego <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:juandiego83@gmail.com" target="_blank">juandiego83@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">So The recommend way would be to create
my own user administrator and when I create a user it
will create a user on keycloak via keycloak s rest
api.
<div>
<div class="h5"><br>
<br>
<br>
<div>
<div class="gmail_extra">
<div class="gmail_quote">On Thu, Apr 28, 2016
at 11:21 PM, Stian Thorgersen <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:sthorger@redhat.com"
target="_blank">sthorger@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div dir="ltr">User federation isn't
designed to push users created in
Keycloak to the database. It only
supports syncing users that are created
in the database.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div>On 27 April 2016 at 18:55, Juan
Diego <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:juandiego83@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:juandiego83@gmail.com">juandiego83@gmail.com</a></a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>I was checking the
example for
federation-properties-example.
In both examples when
you sync all users, it
just checks for the
users in the properties
file and adds it to
keycloak if it doesnt
exist.<br>
</div>
If I want to do it both
ways, so it adds users
from keycloak to my
database, and users from
my database to keycloak.
Should I add them here? I
am not managing any
password on my database,
so i just need user id and
username and maybe email.<br>
<br>
</div>
Also when I add a new user I
can tell that
syncronizeRegistrations() is
being called but it is
null. In order to create a
new user in my database,
should I call a create user
function to my database
here.<br>
<br>
</div>
Thanks,<br>
<br>
<br>
</div>
<br>
</div>
</div>
_______________________________________________<br>
keycloak-user mailing list<br>
<a moz-do-not-send="true"
href="mailto:keycloak-user@lists.jboss.org"
target="_blank">keycloak-user@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/keycloak-user"
rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>keycloak-user mailing list</span><br>
<span><a moz-do-not-send="true"
href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a></span><br>
<span><a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></span></div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>