The only way to do that at the moment would be to import the data into the Keycloak database. The easiest way to do this would be to export your database to json and import into Keycloak.
If this is something you want to do, let me know and we can give you some instructions, maybe also an example, on how to do this.
> _______________________________________________
----- Original Message -----
> From: "Rodrigo Sasaki" <rodrigopsasaki@gmail.com>
> To: keycloak-user@lists.jboss.org
> Sent: Friday, 13 June, 2014 3:39:55 PM
> Subject: [keycloak-user] Roles Integration
>
> Hi,
>
> I needed to migrate accounts from an old database to authenticate with
> Keycloak, and I implemented my own provider of the Authentication SPI, which
> worked fine.
>
> Now what should I do if I need to migrate the roles from those accounts
> aswell? Is there a suggested flow that I should follow?
>
> Thanks,
>
> --
> Rodrigo Sasaki
>
> keycloak-user mailing list
> keycloak-user@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user