# Retrieve user given\_name

**URL:** <https://community.auth0.com/t/retrieve-user-given-name/40139>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [March 29, 2020, 11:03pm UTC](https://community.auth0.com/t/retrieve-user-given-name/40139 "2020-03-29T23:03:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![loct](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loct/32/13197_2.png) [@loct](https://community.auth0.com/u/loct)\
**Post date:** [March 29, 2020, 11:03pm UTC](https://community.auth0.com/t/retrieve-user-given-name/40139/1 "2020-03-29T23:03:43Z")

</div>

Hey all -

I successfully set up my Angular SPA with Auth0 but I’m having trouble retrieving the “given\_name” or any properties from the user object in order to display it in the profile page or use it in the navbar. How would I retrieve those values?

After login in to my app, I can see the following under the profile page:

```
 {
  "given_name": "XXX",
  "family_name": "XXX",
  "nickname": "XXX",
  "name": "XXX XXX",
  "picture": "XX",
  "locale": "en",
  "updated_at": "2020-03-29T22:52:33.377Z",
  "email": "XXX@gmail.com",
  "email_verified": true,
  "sub": "XXX"
}

```

And I have this under the profile.component.html:

```
<pre *ngIf="auth.userProfile$ | async as profile ">

   {{ profile | json }}
                 
  
        
        </pre>  

```

Any help would be appreciated it! Thanks!

---

<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:** [March 30, 2020, 5:19pm UTC](https://community.auth0.com/t/retrieve-user-given-name/40139/3 "2020-03-30T17:19:41Z")

</div>

Hi @loct,

Welcome to the Community!

You should be able to retrieve them using object properties syntax. For example, instead of retrieving the entire profile with `{{ profile }}`, you could get just the given name with `{{profile.given_name}}`. Does that make sense?

Dan

---

<div class="post-metadata">

**Author:** ![loct](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loct/32/13197_2.png) [@loct](https://community.auth0.com/u/loct)\
**Post date:** [March 30, 2020, 7:16pm UTC](https://community.auth0.com/t/retrieve-user-given-name/40139/4 "2020-03-30T19:16:30Z")

</div>

Hi @dan.woda -

That worked! Thank you for the detailed reply, I appreciate it!

---

<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:** [March 30, 2020, 7:45pm UTC](https://community.auth0.com/t/retrieve-user-given-name/40139/5 "2020-03-30T19:45:23Z")

</div>

No problem! good luck 😄

---

<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:** [April 14, 2020, 7:59pm UTC](https://community.auth0.com/t/retrieve-user-given-name/40139/6 "2020-04-14T19:59:42Z")

</div>

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