# How to read user\_metadata from user object?

**URL:** <https://community.auth0.com/t/how-to-read-user-metadata-from-user-object/72844>\
**Category:** Get Help\
**Created:** [November 9, 2021, 4:22pm UTC](https://community.auth0.com/t/how-to-read-user-metadata-from-user-object/72844 "2021-11-09T16:22:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![figuitarrag](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/figuitarrag/32/32865_2.png) [@figuitarrag](https://community.auth0.com/u/figuitarrag)\
**Post date:** [November 9, 2021, 4:22pm UTC](https://community.auth0.com/t/how-to-read-user-metadata-from-user-object/72844/1 "2021-11-09T16:22:01Z")

</div>

Hello all. Maybe this is a beginner question but I’m really struggling to understand how can I read user\_metadata after adding it from user management dashboard.

I am able to access default user\_object properties such as family\_name, nickname, name, etc, but not the ones I have added to the user\_metadata field for each user.

What I would like to do is the following: after the login, the user has access to a profile page where he can see the default user object + user metadata. Then I would update user\_metadata from the user management dashboard. Are there any tutorials or guides that can help me understand? Thank you very much.

I have this at the moment:

````auto
router.get('/', requiresAuth(), (req, res) => {

  res.render('pages/homepage', {
    title: 'some title',
    isAuthenticated: req.oidc.isAuthenticated(),
    user: req.oidc.user,
  });
});
```
````

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 9, 2021, 5:24pm UTC](https://community.auth0.com/t/how-to-read-user-metadata-from-user-object/72844/3 "2021-11-09T17:24:55Z")

</div>

Hi @figuitarrag,

Welcome to the Auth0 Community!

To get the `user_metadata` you will need to use the Management API v2 and call the [Get a User](https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id) endpoint.

You’ll also need to [call the Management API using the Client Credentials flow](https://auth0.com/docs/authorization/flows/call-your-api-using-the-client-credentials-flow).

Doing so will return the [User Profile Attributes](https://auth0.com/docs/users/user-profiles/user-profile-structure#user-profile-attributes), including the `user_metadata`.

Please let me know you have any questions. I’d be happy to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![figuitarrag](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/figuitarrag/32/32865_2.png) [@figuitarrag](https://community.auth0.com/u/figuitarrag)\
**Post date:** [November 11, 2021, 9:39am UTC](https://community.auth0.com/t/how-to-read-user-metadata-from-user-object/72844/4 "2021-11-11T09:39:18Z")

</div>

Thank you very much. Best regards

---

<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:** [November 26, 2021, 9:40am UTC](https://community.auth0.com/t/how-to-read-user-metadata-from-user-object/72844/5 "2021-11-26T09:40:09Z")

</div>

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