<div dir="ltr">We have about 15 roles and over 20 million users</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 16, 2014 at 11:32 AM, Stian Thorgersen <span dir="ltr"><<a href="mailto:stian@redhat.com" target="_blank">stian@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 class=""><br>
<br>
----- Original Message -----<br>
> From: "Rodrigo Sasaki" <<a href="mailto:rodrigopsasaki@gmail.com">rodrigopsasaki@gmail.com</a>><br>
</div><div class="">> To: "Stian Thorgersen" <<a href="mailto:stian@redhat.com">stian@redhat.com</a>><br>
> Cc: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> Sent: Monday, 16 June, 2014 3:27:43 PM<br>
> Subject: Re: [keycloak-user] Roles Integration<br>
><br>
> That's an interesting suggestion, but how would I do that if the databases<br>
> are very different?<br>
><br>
> Just remembering that I want to integrate the user role mappings, and not<br>
> just the roles themselves.<br>
<br>
</div>Makes sense, roles are not worth much if no users have mappings to them ;)<br>
<div class=""><br>
><br>
> Should I create a JSON from my database following a specific format to<br>
> import it into Keycloak?<br>
<br>
</div>Yes, that's the idea. Roughly how many users and roles do you have?<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> On Mon, Jun 16, 2014 at 6:01 AM, Stian Thorgersen <<a href="mailto:stian@redhat.com">stian@redhat.com</a>> wrote:<br>
><br>
> > The only way to do that at the moment would be to import the data into the<br>
> > Keycloak database. The easiest way to do this would be to export your<br>
> > database to json and import into Keycloak.<br>
> ><br>
> > If this is something you want to do, let me know and we can give you some<br>
> > instructions, maybe also an example, on how to do this.<br>
> ><br>
> > ----- Original Message -----<br>
> > > From: "Rodrigo Sasaki" <<a href="mailto:rodrigopsasaki@gmail.com">rodrigopsasaki@gmail.com</a>><br>
> > > To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> > > Sent: Friday, 13 June, 2014 3:39:55 PM<br>
> > > Subject: [keycloak-user] Roles Integration<br>
> > ><br>
> > > Hi,<br>
> > ><br>
> > > I needed to migrate accounts from an old database to authenticate with<br>
> > > Keycloak, and I implemented my own provider of the Authentication SPI,<br>
> > which<br>
> > > worked fine.<br>
> > ><br>
> > > Now what should I do if I need to migrate the roles from those accounts<br>
> > > aswell? Is there a suggested flow that I should follow?<br>
> > ><br>
> > > Thanks,<br>
> > ><br>
> > > --<br>
> > > Rodrigo Sasaki<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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
> Rodrigo Sasaki<br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div></div></div>
</div>