<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, <span
style="background-color:#e4e4ff;"> you have to configure the
appropirate mapper in the "mappers" tab in admin console.</span>
The method <span style="background-color:#e4e4ff;">IdentityProviderMapper.updateBrokeredUser()
is called after each successful login of user with the identity
provider.<br>
<br>
I think you can choose one of predefined mapper implementation
for update the attribute from identity provider. I think we have
the implementations for both OIDC and SAML providers. In worst
case, you can create your own implementation of </span><span
style="background-color:#e4e4ff;"><span
style="background-color:#e4e4ff;">IdentityProviderMapper </span>to
do exactly what you want. This would be still much better than
delete/create user during each login.<br>
<br>
Marek<br>
</span>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<br>
On 21/04/16 20:36, Xiao Ma wrote:<br>
</div>
<blockquote
cite="mid:CABOwsGTQ0KhqDoYOf3z-68iZNstF97Y38uH6Avt1cieGJUEPhA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>
<p class=""><span class="">I have a custom user attribute
(telephone number) for the users in my identity
provider. When this user attribute for a given user is
updated in my identity provider,, the corresponding user
attribute for that user in the keycloak database doesn't
update automatically. </span></p>
<p class=""><span class="">I have to delete the user from
keycloak database and force a user recreation in the next
new user login (using First Broker Login Authentication
Flow), then my updated customer attribute will show up. Is
there a way to update user attribute automatically without
a user recreation? </span></p>
<p class=""><span class="">Thanks a lot,</span></p>
<p class=""><span class="">Xiao</span></p>
<p class=""><span class=""><br>
</span></p>
</div>
</div>
<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>