[keycloak-user] Admin rest api / admin console to export users

Meikle, Anthony anthony.meikle at xyleminc.com
Thu Oct 18 10:49:53 EDT 2018


You could write a Java program using the keycloak-admin-client to recreate the users from your exiting database.

On 10/18/18, 10:36 AM, "keycloak-user-bounces at lists.jboss.org on behalf of Bruce Wings" <keycloak-user-bounces at lists.jboss.org on behalf of testoauth55 at gmail.com> wrote:

    Thanks for the reply. But I am looking for a non command line way to
    import/export users. Is there an admin rest API or admin web console option
    for the same?
    
    On Thursday, October 18, 2018, Deepa Gaddigoudar <deepag at aissel.com> wrote:
    
    > https://github.com/Codingpedia/codingmarks.org/
    > wiki/Move-keycloak-database-from-H2-to-MySql
    >
    > *https://www.keycloak.org/docs/latest/server_installation/index.html#_database*
    > <https://www.keycloak.org/docs/latest/server_installation/index.html#_database>
    >
    >
    > Use below command to export users:
    >
    >
    > KEYCLOAK_HOME/standalone.sh -Dkeycloak.migration.action=export
    > -Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=exported_realms
    > -Dkeycloak.migration.strategy=OVERWRITE_EXISTING
    >
    >
    >
    >
    > On Thursday 18 October 2018 04:58 PM, Bruce Wings wrote:
    >
    > Is the only way to export users via* kcadm.sh/.bat <http://kcadm.sh/.bat> <http://kcadm.sh/.bat> *or
    > is there a way to export users via admin console / admin rest API?
    > _______________________________________________
    > keycloak-user mailing listkeycloak-user at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/keycloak-user
    >
    >
    > --
    > ------------------------------
    > *Deepa M Gaddigoudar | Software Developer*
    > Aissel Technologies Pvt. Ltd.
    > A Block, Floor 2, IT Park, Hubli – 580029. India
    > Ph (Ind) : +91 836-235-1011 l Ph: +1 347-966-8181
    > Cell: +91 8951519616
    > E-Mail: deepag at aissel.com
    >
    _______________________________________________
    keycloak-user mailing list
    keycloak-user at lists.jboss.org
    https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list