docs: get list of keycloak users' email addresses

pull/15/head
teutat3s 2023-10-27 20:46:06 +02:00
parent 795026f5ad
commit 3f7679886d
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
1 changed files with 22 additions and 0 deletions

View File

@ -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 <admin password> \
> keycloak-user-list.json
jq -r '.[].email' < keycloak-user-list.json
```