From 3f7679886d73f52a56ec5c5e345a0a7291120a39 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Fri, 27 Oct 2023 20:46:06 +0200 Subject: [PATCH] docs: get list of keycloak users' email addresses --- docs/keycloak-email-list.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/keycloak-email-list.md diff --git a/docs/keycloak-email-list.md b/docs/keycloak-email-list.md new file mode 100644 index 0000000..9279f86 --- /dev/null +++ b/docs/keycloak-email-list.md @@ -0,0 +1,22 @@ +# Process for getting a list of email addresses of all keycloak users + +### Keycloak +Required: +- auth.pub.solar ops user credentials +- SSH access to host flora-6 +``` +ssh barkeeper@flora-6.pub.solar + +sudo --user keycloak kcadm.sh get users \ + -r pub.solar \ + --offset 0 \ + --limit 1000 \ + --no-config \ + --server http://localhost:8080 \ + --realm master \ + --user admin \ + --password \ + > keycloak-user-list.json + +jq -r '.[].email' < keycloak-user-list.json +``` -- 2.44.2