Is it possible to read User metadata in Universal Login Reset Password Template?

Ready to post? :mag: First, try searching for your answer.
Hello, we’re attempting to customize text on the password reset Universal Login page based on a property in a User’s metadata. Is this data available on the password reset page, and if so, can text be made dynamic? Thank you!

Hello @LucasCMiller4180! Welcome to the community.

I understand you are trying to add user metadata to the password reset page to customize it and create a better feel. This is definitely possible. Here is the link to the available variables for the custom password reset page for Universal Login. I believe this page covers what you are asking about.

I hope this helps!

Best,
Alex

1 Like

I saw elsewhere that Password Reset may be considered before authentication, and the user data is only available after authentication. We’ve been struggling to access that data testing locally, do you know if Password Reset is always considered ‘after authentication’?

Hey @LucasCMiller4180!

Password reset is most likely used before authentication you’re right there. Unfortunately some parts of the data are only available after authentication. I found a doc that should be able to help: Available Variables.

I hope this helps!

Best,
Alex

what is the answer then? is user metadata available in the password reset page? Is the page regarding Available Variables correct about usermetadata being available at this stage? I noticed questions are always being pushed to links instead of being answered. All this customization requirement because of the failure to provide a proper distinction between Password Reset(user resets password) and Password Setup(user was invited and needs to setup password). Why not have separate templates/page for these.

Hi!

When customizing the email templates, you would need to be using the Classic Login page since any changed made will not take effect for Universal Login.

For Universal Login, you can customize the text elements under Branding → Advanced → Custom text. However, as mentioned in the documentation:

Some screens have variables in the text that are replaced at runtime based on contextual information. As different variables are available for each screen, it is not guaranteed that a given variable will work anywhere other than their original screen.

Meaning that you might not be able to customize the prompt dynamically because those variables might not be available for the specific screen and text.

If you have any other questions, let me know!

Kind Regards,
Nik

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