Event.user.nickname undefined when referenced in custom action in post reg flow

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)

const axios = require("axios");

exports.onExecutePostUserRegistration = async (event) => {

  await axios.post(`INTERNAL_API?customerID=${event.user.user_id}&nickName=${event.user.nickname}`);

};

Ddi you get any further with this @danoely ?

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:

I have the same issue, any luck with it ?
please see mine : Post-user-registration action not triggered after manage API createUser - #4 by r.cauquil

Hey there!

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!

Learn more here!