infra/docs/keycloak/keycloak-email-list.md
teutat3s c18a9da4e9
All checks were successful
Flake checks / Check (pull_request) Successful in 3m29s
keycloak: update docs to use admin-cli client
instead of ops user
2024-06-10 20:35:40 +02:00

26 lines
562 B
Markdown

# Process for getting a list of email addresses of all keycloak users
### Keycloak
Required:
- auth.pub.solar admin-cli service user credentials
- [SSH access to host `nachtigall`](../administrative-access.md#ssh-access)
Run following after SSH'ing to `nachtigall`:
```
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
```