Does Not Work - Custom Params in Redirect URL

Hi,

I’m trying to build an application that requires some additional data in the redirect URL after a user successfully creates an account. I’m using a machine-to-machine application for this, and calling the API to create a user as shown below:
URL:

https://{domain}.us.auth0.com/dbconnections/signup

Body:

{
    "client_id": "client_id",
    "email": "email",
    "password": "password",
    "connection": "Username-Password-Authentication",
    "user_metadata": {
        "my_custom_param": "test_value"
    }
}

I’ve set the redirect URL like this:

http://localhost:2323/test?customParam={{ user.user_metadata.my_custom_param }}&userId={{ user.id }}

However, the custom parameters in the redirect URL aren’t working as expected. Could someone help me achieve my goal?

Thanks!

1 Like

I can confirm the same behavior.
@be310data were you able to resolve/workaround it?

Hi @be310data,

The common variables with Liquid Syntax are only accessible in the From Address, Subject, and Message fields.

You can view the variables accessible in the Redirect to field here: Customize Email Templates

Best,

Mary Beth