# User information is not included in the email template

**URL:** <https://community.auth0.com/t/user-information-is-not-included-in-the-email-template/124222>\
**Category:** Get Help\
**Tags:** email-providers, smtp\
**Created:** [January 5, 2024, 10:40am UTC](https://community.auth0.com/t/user-information-is-not-included-in-the-email-template/124222 "2024-01-05T10:40:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilia\_magnificode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ilia_magnificode/32/50313_2.png) [@ilia\_magnificode](https://community.auth0.com/u/ilia_magnificode)\
**Post date:** [January 5, 2024, 10:40am UTC](https://community.auth0.com/t/user-information-is-not-included-in-the-email-template/124222/1 "2024-01-05T10:40:56Z")

</div>

Good day  
An invitation and verification email were sent with [[user.name]] in the template but it did not include include name of the user.  
Additionally, I put [% debug %] in the template that sees user objects and objects that only include email addresses. Would it be possible for you guys to tell me why the user object doesn’t include any other information? and help me in that case?

thanks in advance

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 5, 2024, 6:45pm UTC](https://community.auth0.com/t/user-information-is-not-included-in-the-email-template/124222/3 "2024-01-05T18:45:25Z")

</div>

Hi @ilia_magnificode,

Welcome to the Auth0 Community!

> [@ilia\_magnificode](#):
>
> An invitation and verification email were sent with [[user.name]] in the template but it did not include include name of the user.

If you are using Liquid syntax in your email template, the correct reference for the user’s name would be `{{ user.name }}` with curly brackets instead of square brackets. (Reference: [Use Liquid Syntax in Email Templates](https://auth0.com/docs/customize/email/email-templates/use-liquid-syntax-in-email-templates))

Similarly for debugging, it should be `{% debug %}`.

[Here](https://auth0.com/docs/customize/email/email-templates#common-variables) is a list of callable variables in an email template.

Could you please make these changes and let me know how it goes?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![ilia\_magnificode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ilia_magnificode/32/50313_2.png) [@ilia\_magnificode](https://community.auth0.com/u/ilia_magnificode)\
**Post date:** [January 10, 2024, 9:20am UTC](https://community.auth0.com/t/user-information-is-not-included-in-the-email-template/124222/4 "2024-01-10T09:20:50Z")

</div>

Good day @rueben.tiow

The question was written incorrectly, I previously used this syntax `{{ user.name }}`.  
Further, I placed `{%debug%}` in the email template, and the user object does not contain a name.

---

<div class="post-metadata">

**Author:** ![tom\_magnificode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tom_magnificode/32/49547_2.png) [@tom\_magnificode](https://community.auth0.com/u/tom_magnificode)\
**Post date:** [January 22, 2024, 9:52am UTC](https://community.auth0.com/t/user-information-is-not-included-in-the-email-template/124222/5 "2024-01-22T09:52:01Z")

</div>

Hey @rueben.tiow would love your help on this

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 24, 2024, 8:26pm UTC](https://community.auth0.com/t/user-information-is-not-included-in-the-email-template/124222/6 "2024-01-24T20:26:30Z")

</div>

Hi @ilia_magnificode,

Thanks for your reply.

I noticed that your user invitation email template includes `{{ user.name }}` but it’s not present in your verification email template.

When inspecting your user invitation email template, I don’t see any issues with the email template code. It looks fine.

However, I did notice that when creating the organization user invitation request, there is no way to specify the user’s name.

For example:

```auto
curl -L 'https://login.auth0.com/api/v2/organizations/:id/invitations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{"inviter":{"name":"string"},"invitee":{"email":"user@example.com"},"client_id":"string","connection_id":"string","app_metadata":{},"user_metadata":{},"ttl_sec":0,"roles":["string"],"send_invitation_email":true}'

```

Hence why, the `{{ user.name }}` is not included in the email template.

The only name available is the `{{ inviter.name }}`.

You could work around this by including the user’s name in the user\_metadata and calling it that way.

Let me know if you have any questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 7, 2024, 8:26pm UTC](https://community.auth0.com/t/user-information-is-not-included-in-the-email-template/124222/7 "2024-02-07T20:26:34Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
