Skip to content

Instantly share code, notes, and snippets.

@osorionicolas
Created January 25, 2022 06:53
Show Gist options
  • Select an option

  • Save osorionicolas/50574aaaec9ee0bcd96d97a258bbd541 to your computer and use it in GitHub Desktop.

Select an option

Save osorionicolas/50574aaaec9ee0bcd96d97a258bbd541 to your computer and use it in GitHub Desktop.
Bash script used to generate an export from Keycloak including users in the json
docker exec -it b691cd6a3902 /opt/jboss/keycloak/bin/standalone.sh \
-Djboss.socket.binding.port-offset=100 \
-Dkeycloak.migration.action=export \
-Dkeycloak.migration.provider=singleFile \
-Dkeycloak.migration.file=/tmp/keycloak-export.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment