Accessing user data in passwordless email template

I’m attempting to access user data fields in the passwordless email template. In the send == 'link' email, I’m trying to access user fields (i.e. {{ name}} , {{user.name}}, {{user.meta_data.first_name}} etc). I’ve confirmed that these values are set on the user however, those values are not ouput in the email. Do passwordless email templates have access to these properties?

You are supposed to be able to use liquid syntax to access those attributes, though I haven’t tried it myself.

Passwordless emails only have access to a very limited set of variables. Things like user.name are not available. The only thing you do have is user.email, but seeing that as a greeting in an email always looks a bit scammy to me.

The full list of variables is at Passwordless Authentication with Email.

2 Likes

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