# Can you add something to users app\_metadata in pre user registration action?

**URL:** <https://community.auth0.com/t/can-you-add-something-to-users-app-metadata-in-pre-user-registration-action/61340>\
**Category:** Get Help\
**Tags:** actions\
**Created:** [April 19, 2021, 9:09am UTC](https://community.auth0.com/t/can-you-add-something-to-users-app-metadata-in-pre-user-registration-action/61340 "2021-04-19T09:09:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexab/32/13403_2.png) [@alexab](https://community.auth0.com/u/alexab)\
**Post date:** [April 19, 2021, 9:09am UTC](https://community.auth0.com/t/can-you-add-something-to-users-app-metadata-in-pre-user-registration-action/61340/1 "2021-04-19T09:09:42Z")

</div>

Checking out actions, and wondered if the above is possible?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 19, 2021, 11:53am UTC](https://community.auth0.com/t/can-you-add-something-to-users-app-metadata-in-pre-user-registration-action/61340/3 "2021-04-19T11:53:19Z")

</div>

Hey there!

Let me follow up with the team on that!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 20, 2021, 8:16am UTC](https://community.auth0.com/t/can-you-add-something-to-users-app-metadata-in-pre-user-registration-action/61340/4 "2021-04-20T08:16:24Z")

</div>

Hey there!

Managed to get a follow up on that front.

It should be like that:

```auto
/** @type {PreUserRegistrationAction} */
module.exports = async (event, context) => {
  return {
    user: {
      user_metadata: {
        "my_prop": "my_value"
      }
    }
  };
};

```

But right now we have a limitation where the metadata updates aren’t working in Passwordless flows (for both the pre-user-reg hook and the action). The team is working on that.

---

<div class="post-metadata">

**Author:** ![alexab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexab/32/13403_2.png) [@alexab](https://community.auth0.com/u/alexab)\
**Post date:** [April 20, 2021, 8:35am UTC](https://community.auth0.com/t/can-you-add-something-to-users-app-metadata-in-pre-user-registration-action/61340/5 "2021-04-20T08:35:23Z")

</div>

Would this also work for app\_metadata?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 20, 2021, 12:30pm UTC](https://community.auth0.com/t/can-you-add-something-to-users-app-metadata-in-pre-user-registration-action/61340/6 "2021-04-20T12:30:06Z")

</div>

I was told it should 🙂

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 29, 2021, 12:20pm UTC](https://community.auth0.com/t/can-you-add-something-to-users-app-metadata-in-pre-user-registration-action/61340/7 "2021-04-29T12:20:37Z")

</div>


