Auth0 Home Blog Docs

On Guardian hosted page , how can i print {{userData}} object

guardian
hosted-pages

#1

Hi,

I am on guardian hosted page and I can see we get

{{ userData.tenant }}

and I can also get {{ userData.email }} . But I want to see all values that this {{ userData}} has. I tried {{ userData | json }} but it did not work.

I am sending some additional metadata from rule “Multifactor-Guardian-Do-Not-Rename”

user.email_mfa = ‘test’;
callback(null, user, context);


#3

Hey there @npatel!

Here’s the list of liquid syntax variables you can use in Guardian Hosted Page:

When it comes to userData object there are:

  • userData.email
  • userData.friendlyUserId
  • userData.tenant
  • userData.tenantFriendlyName

Let me know if that helps!


#4

Is there a way to send other user metadata?


#5

Unfortunately when it comes rendering userData info on your Guardian Hosted Page only the parameters I mentioned above are available to assist in rendering your page.


#6

ok, I was hoping to do something with their country and language. but never mind.


#7

Sure. Let me know if you have any other questions!


#8

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