Resource_name Variable Not Resolving in Auth0 User Invitation Email Templates
This article explains why the resource_name variable fails to resolve in the default user invitation email template and provides the steps to replace it with a supported variable. The following internal placeholder may appear in the boilerplate HTML instead of a valid variable:
resource_name
- User invitation email templates
- Liquid syntax variables
The resource_name variable is not a valid Liquid variable. This issue occurs within the dashboard when the backend fails to map correct variables into the boilerplate HTML during template generation or resets, injecting a raw internal placeholder instead. Because the email rendering engine does not recognize this placeholder, it resolves to a blank space when the email is sent.
To resolve this issue, manually delete the resource_name placeholder from the HTML body of the template and replace it with a supported variable.
-
Identify the appropriate replacement variable based on the invitation context:
-
For an Organization invitation, use
{{ organization.name | escape }}. -
For a specific Application invitation, use
{{ client.name | escape }}or{{ application.name | escape }}. -
For a general Tenant invitation, use
{{ tenant.name | escape }}.
-
-
Enter the chosen variable into the HTML body of the email template.
-
Select Save to apply the changes.
For more details regarding the supported Liquid Syntaxes, visit the Supported Liquid Syntax documentation.