# Newbie question for user\_id

**URL:** <https://community.auth0.com/t/newbie-question-for-user-id/64307>\
**Category:** Get Help\
**Created:** [June 10, 2021, 11:08pm UTC](https://community.auth0.com/t/newbie-question-for-user-id/64307 "2021-06-10T23:08:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tennal.jennings](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tennal.jennings/32/29942_2.png) [@tennal.jennings](https://community.auth0.com/u/tennal.jennings)\
**Post date:** [June 10, 2021, 11:08pm UTC](https://community.auth0.com/t/newbie-question-for-user-id/64307/1 "2021-06-10T23:08:29Z")

</div>

Going through the initial Tutorial for Angular I was expecting to see the user\_id in the response.

this.auth.user$.subscribe((profile) =\> {  
this.profileJson = JSON.stringify(profile, null, 2);  
})

However no user\_id is return. How do I access the user\_id so that I can associated the data with the user ?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [June 11, 2021, 11:40am UTC](https://community.auth0.com/t/newbie-question-for-user-id/64307/3 "2021-06-11T11:40:12Z")

</div>

Hi @tennal.jennings,

Welcome to the Community!

The user’s ID is returned in the `sub` claim of the ID Token (the ID Token is where the user profile info comes from):

> **[ID Token Structure](https://auth0.com/docs/secure/tokens/id-tokens/id-token-structure)**
>
> Describes how ID tokens conform to the JWT standard and contain JWT claims asserted about the token itself, standard OIDC claims about the authenticated user, and custom claims that you define, control, and add to a token using a rule.

---

<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:** [June 26, 2021, 11:40am UTC](https://community.auth0.com/t/newbie-question-for-user-id/64307/4 "2021-06-26T11:40:41Z")

</div>

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