# Usermeta data is not showing in auth0 application

**URL:** <https://community.auth0.com/t/usermeta-data-is-not-showing-in-auth0-application/109188>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [June 14, 2023, 5:25am UTC](https://community.auth0.com/t/usermeta-data-is-not-showing-in-auth0-application/109188 "2023-06-14T05:25:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmdanish](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mmdanish/32/47292_2.png) [@mmdanish](https://community.auth0.com/u/mmdanish)\
**Post date:** [June 14, 2023, 5:25am UTC](https://community.auth0.com/t/usermeta-data-is-not-showing-in-auth0-application/109188/1 "2023-06-14T05:25:08Z")

</div>

hi! strange behaviour is giving by the auth0 i am trying to update user\_metadata using actions in auth0 as

```auto
exports.onExecutePostLogin = async (event, api) => {
  api.idToken.setCustomClaim("email_address", event.user.email);
  api.idToken.setCustomClaim("app_metadata", event.user.app_metadata);
  
  const userMetadata = {
    ...event.user.user_metadata,
    id: 20,
    email: event.user.email
  };
  
  api.idToken.setCustomClaim("user_metadata", userMetadata);
};

```

it is updating the user\_metadata and is showing in console that the user\_metadata is updated.

![image](https://global.discourse-cdn.com/auth0/original/3X/7/0/706c9f03e40383a1506c15f325e9915985a6b25b.png)

But when i see in the auth0 dashboard management user \> user\> details it is showing as

 ![image](https://global.discourse-cdn.com/auth0/original/3X/8/1/819c578a20abc73d0ce60a0d43528d67f4e1bc3a.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 22, 2023, 1:48pm UTC](https://community.auth0.com/t/usermeta-data-is-not-showing-in-auth0-application/109188/3 "2023-06-22T13:48:25Z")

</div>

Hi @mmdanish,

This code does not update the user’s metadata in their profile.

To do that, you need to use the `api.user.setUserMetadata` method.

This explains how it works:

> **[Manage User Metadata with the post-login Action Trigger](https://auth0.com/docs/manage-users/user-accounts/metadata/manage-user-metadata)**
>
> Learn how to use the post-login Action trigger to modify user\_metadata and app\_metadata as part of a user’s login flow.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 6, 2023, 1:48pm UTC](https://community.auth0.com/t/usermeta-data-is-not-showing-in-auth0-application/109188/4 "2023-07-06T13:48:48Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
