Hello,
I’ve written a Post-User Registration Action to create a user in a 3rd party application (Hubspot) once the user has been created in the Auth0 database. I need to port over the email
and name
fields to this application every time a new user has signed up.
My action successfully gets called when my application does a post to create the user in auth0 however, when I log the incoming data on the event.user, I see something like this in the Action Logs despite providing the name
field:
{
email: 'email@emailProvider.com',
tenant: 'someTenant',
user_id: 'auth0|fooBar',
app_metadata: {
companyId: 'someCompany',
customMetaField: {
flagOne: false,
flagTwo: false,
}
},
user_metadata: {},
created_at: undefined,
updated_at: undefined,
email_verified: true,
phone_verified: false
}
There is no name field, and other fields like the created_at and updated_at are undefined.
However when I look at the user details in auth0, it has the name. The raw JSON shows all the fields including the created_at
and updated_at
fields.
When I use the action tester, that request has all the user information specified and my action works perfectly if I receive all the provided data, but somehow I’m not getting all that information in reality.
Does anyone have an idea why this data isn’t coming through? I appreciate any help on this issue.
Thank you,
Giles