I have a very basic custom action deployed in Post Registration under Flows
The custom action basically passes 2 properties of the events.user object to our internal API
event.user.user_id
event.user.nickname
But strangely, event.user.nickname is always coming back “undefined”. I use to have this set as a hook under Rules and nickname was always returned fine, but for some reason its coming back undefined when using the below custom action (which I think is a relatively straight forward action)
I have just hit the same issue, the only fields available on the event.user object in my PostUserReg action are
{
"email": "XYZ",
"tenant": "XYZ",
"user_id": "auth0|XYZ",
"app_metadata": {},
"user_metadata": {
"company_name": "XYZ",
"email_signup": false,
"job_title": "XYZ",
"setPasswordRequired": true
},
"email_verified": true,
"phone_verified": false
}
need to get the users name to store externally, and according to the docs it should be there :confused:
As this topic is related to Actions and Rules & Hooks are being deprecated soon in favor of Actions, I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!