Why users need to hear about a sign-in move
For the team doing it, a sign-in move is a project with an export, a dry run and a cut-over window. For a user, it is a morning when the sign-in page looks different, or an email asking them to set a new password. Without warning, that email looks like phishing, and careful users ignore it.
A short series of emails fixes that. The first tells users what will change and when. The second arrives on the day and tells them what to do. The third reaches people who have not signed in since. This tool writes all three from a few facts about your move, in plain text you paste into your own mail tool.
The three emails
| When | What it says | |
|---|---|---|
| Before | One to two weeks ahead | The date, what changes, what stays, how to spot the real emails |
| On the day | Right after the switch | What to do now: set a new password, or just sign in |
| Reminder | A few days to a week later | How to set a password with Forgot password, or sign in |
Each email is short on purpose. Users read the subject and the first lines; anything below that is for the few who want detail.
What changes the words
The tool asks for the facts that change what users must do.
| Setting | Effect |
|---|---|
| Moving from | From Auth0, Okta, Cognito, Azure AD B2C or Firebase, users set a new password; from another Keycloak with a full export, passwords stay |
| Social sign-in | Adds a line for users who sign in with Google, Microsoft or another account: keep doing so, and confirm the link once |
| Authenticator app | Adds a line about setting the app up again at the first sign-in |
| Same sign-in address | Says the address stays the same, or names the new one |
| How users reach you | Your own support channel, in the closing line |
The product name, the date and the signature are yours. {{first_name}} is a placeholder; replace it with your mail tool’s merge field, or remove it.
How the set-password email fits in
When passwords do not move, users get one more email: the set-password email from Keycloak itself. After the import, an admin or a script asks Keycloak to send it, with the Credential reset action in the admin console or the execute-actions-email endpoint of the admin REST API with ["UPDATE_PASSWORD"]. Keycloak sends it through the realm’s SMTP connection, with the text of its email template, and the link opens its Update Password page.
Your emails prepare users for that one. They say it is coming, what it looks like and where its link leads, so users trust it. Send your “on the day” email first and the Keycloak emails right after, in batches if you have many users, so your mail provider’s limits are not hit at once.
The link in Keycloak’s email expires after the lifespan you set when you send it. The reminder tells users to use Forgot password on the sign-in page, which sends a fresh link, so turn Forgot password on in the realm’s login settings.
A sample announcement
Subject: Sample App sign-in is moving on Tuesday, March 3
Hello {{first_name}},
On Tuesday, March 3 we move Sample App sign-in to a new system. Your account, your settings and your data stay as they are.
What changes for you:
- Your password does not move with your account. After the move you will get an email with a link to set a new one. The link works for a limited time; if it runs out, use “Forgot password?” on the sign-in page.
- If you use an authenticator app for a second step, you will set it up again at your first sign-in.
You sign in at the same address as today: https://app.example.com
We will never ask for your password by email.
Questions? Reply to this email.
The Sample App teamQuestions your support team will get
Most questions after a sign-in move are the same few. Give your support team the answers before the announcement goes out.
| Question | Answer |
|---|---|
| Is this email real? | Yes, if the link goes to your sign-in address. You never ask for a password by email. |
| My link does not work. | It may have expired. Use Forgot password on the sign-in page for a fresh link. |
| I never got the email. | Check spam, then use Forgot password. Check the address on file if it still does not arrive. |
| Can I keep my old password? | Only when passwords moved. Otherwise any new password that meets the policy works, and it may be the same as before. |
| My authenticator app shows an old code. | Remove the old entry and scan the new code shown at sign-in. |
| I sign in with Google. What do I do? | Keep signing in with Google, and confirm once that the account is yours. |
Watch the first day’s questions closely. If one answer comes up again and again, add it to the reminder email before it goes out.
Who gets which email
Not every user needs every email. The converters’ summary tells you who is who, and the import file marks password users with the Update Password action, so you can build the lists from it.
| Users | Before | On the day | Keycloak’s email | Reminder |
|---|---|---|---|---|
| Password users, passwords not moved | Yes | Yes | Yes | If they have not set a password |
| Password users, passwords moved | Yes | Yes | No | If they have not signed in |
| Social or enterprise sign-in only | Yes | Yes | No | If they have not signed in |
| Disabled in the old system | No | No | No | No |
Users who signed in with a provider still need the first two emails. They will see a new sign-in page and one confirmation step, and both are easier to accept when they were told. What they do not need is the line about a new password: delete it from their copy before you send it, so the email matches what they will see.
Keep the lists in your mail tool, not in the import file. The file goes into Keycloak; the lists stay with the people who write to your users.
Languages and accessibility
If your product speaks several languages, send each user the emails in the language they use with you. Keycloak sends its own email in the user’s locale when the realm has internationalization turned on and the user has a locale attribute, so carry the language over in the import file as that attribute.
Keep the emails plain. Plain text reads well in every mail client and with screen readers, links are written out in full, and nothing depends on images. If your mail tool adds a template around the text, check that the link and the date stay in the first lines.
Writing tips
- Put the date in the subject. It is the one fact everyone needs.
- Say what stays the same: the account, the data, the address. It calms more than it informs.
- Never ask for a password, and say so. Phishing emails ask; yours do not.
- Name the sender users will see. If Keycloak’s emails come from a different sender name than your usual one, say which.
- Keep one channel for questions, and make sure your support team has the answers first.
- Send a test to yourself, on a phone, before you send to anyone else. Then send one to a colleague who knows nothing about the move, and ask what they would do.
Timing
Most teams send the announcement one to two weeks before the move and the reminder within a week after. Shorter notice works for an internal tool, longer for a consumer app with users who sign in rarely. For apps where people sign in once a month or less, expect the reminder and Forgot password to do much of the work.
Plan the batches of set-password emails with your mail provider’s sending limits in mind, and watch bounces on the first batch before you send the rest. Send on a weekday morning in your users’ time zone, when your support team is there to answer, and avoid the days before a holiday.
Where this fits in the move
User communication is one phase of the readiness checklist. The converters mark which users need a new password: Auth0, Firebase, Cognito, Okta and Azure AD B2C.
On Premium and Enterprise, our team does the move with you within the plan’s 10 service hours a month. The emails always go out from your own system, to your own users. Moving to RealmDeploy explains each source.