<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">If I understand, you want to do a mass
migration all at once? You could export to json in the format
that Keycloak expects, then do an import.<br>
<br>
On 7/20/2016 5:52 AM, Paulo Pires wrote:<br>
</div>
<blockquote
cite="mid:CAO8YOYXtZtJ2QPBM9G9QUyeZrTDWPBZ9HbtEg9GWtW+tFfCRaA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>I'm in the process of migrating from an in-house user-role
storage to Keycloak and I'm looking for programmatic (Java)
ways to migrate all current users to the new storage. And I
need your help to figure out the best approach.</div>
<div><br>
</div>
<div>At first, when reading KC documentation, I believed I could
easily achieve this by implementing a User Federation provider
but after diving a little more into it, and looking for
examples, I can't see a way to migrate all users on-demand but
simply one user at a time, possible during log-in.</div>
<div><br>
</div>
<div>Next, I tried and look into ways, such as admin-cli, REST,
etc but nothing strikes me as the solution to use.</div>
<div><br>
</div>
<div>Here's what I was hoping to deliver:</div>
<div>* Get all roles and users from my soon-to-be deprecated
storage, e.g. MySQL tables</div>
<div>* Add roles to KC</div>
<div>* Iterate users and add user to KC + map roles + update
password hashes (here I know I need to implement a
HashProvider)</div>
<div><br>
</div>
<div>Any hints will be appreciated!</div>
<div><br>
</div>
<div>Pires</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>