2023-11-16 21:04:29 +00:00
|
|
|
# Process for getting a list of email addresses of all keycloak users
|
|
|
|
|
|
|
|
### Keycloak
|
2024-05-08 20:57:07 +00:00
|
|
|
|
2023-11-16 21:04:29 +00:00
|
|
|
Required:
|
2024-05-08 20:57:07 +00:00
|
|
|
|
2024-06-10 18:26:20 +00:00
|
|
|
- auth.pub.solar admin-cli service user credentials
|
|
|
|
- [SSH access to host `nachtigall`](../administrative-access.md#ssh-access)
|
2024-05-08 20:57:07 +00:00
|
|
|
|
2024-06-10 18:26:20 +00:00
|
|
|
Run following after SSH'ing to `nachtigall`:
|
2023-11-16 21:04:29 +00:00
|
|
|
|
2024-06-10 18:26:20 +00:00
|
|
|
```
|
2023-11-16 21:04:29 +00:00
|
|
|
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
|
|
|
|
```
|