Keycloak notes and commands
kcadm.sh get users -r dealer -q lastname="name two" --fields id > /tmp/users.json
for id in $(cat /tmp/users.json | jq '.[].id' | tr -d '"'); do kcadm.sh delete "users/$id" -r dealer;done
kcadm.sh get users -r dealer -q user="name two" --fields id > /tmp/users.json
cat dealer-users-1.json | jq '.users[] | select(.username | startswith("svc"))'
./kcadm.sh config credentials \
--server http://localhost:8080/auth \
--realm master \
--client admin-cli \
--user $KEYCLOAK_USER \
--password $KEYCLOAK_PASSWORD
kcadm.sh update realms/dealer -x \
-s 'bruteForceProtected=true' \
-s 'permanentLockout=true' \
-s 'maxFailureWaitSeconds=900' \
-s 'minimumQuickLoginWaitSeconds=60' \
-s 'waitIncrementSeconds=60' \
-s 'quickLoginCheckMilliSeconds=1000' \
-s 'maxDeltaTimeSeconds=43200' \
-s 'failureFactor=3'