Keycloak admin routines
Recurring Keycloak operations on the d-centralize realm. These run through the
onboarding-sync service account, so a checkout of
dc scripts handles
authentication for you (the client secret is pulled from Bitwarden).
Resend a password reset / invite
Section titled “Resend a password reset / invite”Use this when a user cannot log in: they set a new password but it doesn’t work,
never received the original invite, or the action link expired. It re-sends the
Keycloak action email (Update Password + Verify Email) with
onboarding/sync_users.py:
# preview — prints the address the email will be sent to, sends nothinguv run onboarding/sync_users.py --only <localpart> --service keycloak --resend-invite
# send ituv run onboarding/sync_users.py --only <localpart> --service keycloak --resend-invite --apply