Skip to content

User migration email templates

Write the emails you send your own users about a sign-in move: an announcement, an email on the day and a reminder, with the right words about passwords, social sign-in and authenticator apps.

Runs in your browser. Nothing you paste is sent to us.

About your move

As your users read it.

Your own support channel, such as “reply to this email” or “use Help in the app”.

Email

Subject
Sample App sign-in is moving on Tuesday, March 3
Body
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 sign in with Google, Microsoft or another account, keep doing so. The first time, you may be asked to confirm that it is your Sample App account, by email or with your password.
- If you use an authenticator app for a second step, you will set it up again at your first sign-in. Remove the old Sample App entry from the app afterwards.

You sign in at the same address as today: https://app.example.com

We will never ask for your password by email. The only link we send goes to https://app.example.com or to the sign-in page it opens.

Questions? Reply to this email.

The Sample App team
{{first_name}} is a placeholder for your mail tool. Send these from your own system, to your own users. The set-password email itself comes from Keycloak (the Update Password action), with the text of its email template.

How to use it

  1. Enter your product name, the move date and your sign-in address.
  2. Say where users come from and what applies to them.
  3. Pick the email: before, on the day or the reminder.
  4. Copy the subject and body into your own mail tool.

What to know

Users accept a new password more easily when they hear about it first. The announcement says what changes, the email on the day says what to do, and the reminder reaches those who have not acted.

The set-password email itself comes from Keycloak, with the link from the Update Password action. Your emails prepare users for it, so they trust it when it arrives.

The text uses a {{first_name}} placeholder for your mail tool, and no address of ours. Send it from your own system.

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

EmailWhenWhat it says
BeforeOne to two weeks aheadThe date, what changes, what stays, how to spot the real emails
On the dayRight after the switchWhat to do now: set a new password, or just sign in
ReminderA few days to a week laterHow 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.

SettingEffect
Moving fromFrom Auth0, Okta, Cognito, Azure AD B2C or Firebase, users set a new password; from another Keycloak with a full export, passwords stay
Social sign-inAdds a line for users who sign in with Google, Microsoft or another account: keep doing so, and confirm the link once
Authenticator appAdds a line about setting the app up again at the first sign-in
Same sign-in addressSays the address stays the same, or names the new one
How users reach youYour 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

Before, for a move without passwords (sample text)
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 team

Questions 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.

QuestionAnswer
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.

UsersBeforeOn the dayKeycloak’s emailReminder
Password users, passwords not movedYesYesYesIf they have not set a password
Password users, passwords movedYesYesNoIf they have not signed in
Social or enterprise sign-in onlyYesYesNoIf they have not signed in
Disabled in the old systemNoNoNoNo

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.

Questions

Frequently asked questions

Who sends these emails?

You do, from your own mail tool. Keycloak sends only the set-password email, through your realm’s SMTP connection.

Can I change the text of Keycloak’s set-password email?

It uses the text of Keycloak’s email template. Your own emails carry the explanation, so users know the Keycloak email is coming.

When should I send the announcement?

One to two weeks before the move is common. Shorter notice suits an internal tool, longer a consumer app.

What if a user misses the set-password email?

They use Forgot password on the sign-in page, which sends a fresh link. The reminder email says so.

Do users with Google sign-in need to do anything?

They keep signing in with Google and confirm once that the account is theirs, by email or with a password.

Should disabled users get the emails?

No. They cannot sign in, so an email would only confuse them. Leave them out of your lists.

How do I find who still has to set a password?

Keycloak keeps the Update Password action on a user until they finish it. List those users in the admin console or with the admin API, and send them the reminder.

Is anything I type sent to you?

No. The emails are put together in your browser.

Rather not run Keycloak yourself?

We run it for you on a cluster of your own, with backups, upgrades and written support. Starter and Premium begin with a 7-day trial.