infra/docs/keycloak/keycloak-email-list.md
teutat3s 4861593b25
All checks were successful
Flake checks / Check (pull_request) Successful in 17m34s
fix: auth.pub.solar now runs on nachtigall
2023-11-18 18:19:34 +01:00

23 lines
491 B
Markdown

# Process for getting a list of email addresses of all keycloak users
### Keycloak
Required:
- auth.pub.solar ops user credentials
- SSH access to host nachtigall
```
ssh barkeeper@nachtigall.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
```