Set Up Password Email Template

On this page

FusionAuth sends this email when you create a user without a password and ask FusionAuth to send a set up password email. Assign the template in Set up password on the Tenants -> Your Tenant -> Identities tab. To override the template for one Application, set the template on the Applications -> Your Application -> Identities tab.

Default Template#

FusionAuth ships the following default template:

Your account has been created and you must set up a password. Click on the following link to set up your password.
<p>
  [#assign url = "${baseUrl}/password/change/${changePasswordId}?client_id=${(application.oauthConfiguration.clientId)!''}&tenantId=${user.tenantId}" /]
  <a href="${url?html}">
    ${url?html}
  </a>
</p>
- FusionAuth Admin
Your account has been created and you must set up a password. Click on the following link to set up your password.

${baseUrl}/password/change/${changePasswordId}?client_id=${(application.oauthConfiguration.clientId)!''}&tenantId=${user.tenantId}

- FusionAuth Admin

Replacement Variables#

application
  • Type: Application
  • Available since 1.21.0

The Application object. For field definitions, see the Application API.

The variable is present only when the request that sends the email identifies an Application. Check for the variable before you use it:

[#if application??]
  ${application.name}
[/#if]
baseUrl
  • Type: String
  • Available since 1.68.0

The base URL for links in the email. FusionAuth uses the Application baseURL, then the Tenant baseURL, then http://localhost:9011.

changePasswordId
  • Type: String

The change password Id for the Change a User's Password API.

tenant
  • Type: Tenant
  • Available since 1.18.2

The Tenant object. For field definitions, see the Tenant API.

user
  • Type: User

The User object for the recipient. For field definitions, see the User API.