# Retrieveing User Profile Information

**URL:** <https://community.auth0.com/t/retrieveing-user-profile-information/36425>\
**Category:** Get Help\
**Created:** [January 16, 2020, 4:49pm UTC](https://community.auth0.com/t/retrieveing-user-profile-information/36425 "2020-01-16T16:49:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibuoprofen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ibuoprofen/32/15515_2.png) [@ibuoprofen](https://community.auth0.com/u/ibuoprofen)\
**Post date:** [January 16, 2020, 4:49pm UTC](https://community.auth0.com/t/retrieveing-user-profile-information/36425/1 "2020-01-16T16:49:27Z")

</div>

I’m developing an Angular 8 SPA and have successfully integrated Auth0 authentication.The profile information for each user displays just as the tutorial shows. How do I access the email property?

```auto
{
  "nickname": "user,
  "name": "user@email.com",
  "picture": "https://s.gravatar.com/user_image.png",
  "updated_at": "2020-01-15T17:39:10.467Z",
  "email": "user@email.com",
  "email_verified": true,
  "sub": "auth0|000000000000000000000000"
}

```

In app.module.ts, I tried subscribing with the following:

```auto
currentUser: string;
this.auth.userProfile$.subscribe(userProfile => {this.currentUser = userProfile});
console.log(this.currentUser);

```

However, in the console I just get: `null`. As far as I can tell, `auth.service.ts` provides the necessary observable:

```auto
private userProfileSubject$ = new BehaviorSubject<any>(null);
userProfile$ = this.userProfileSubject$.asObservable();

```

Any direction is appreciated.

---

<div class="post-metadata">

**Author:** ![lily.wisecarver](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lily.wisecarver/32/20402_2.png) [@lily.wisecarver](https://community.auth0.com/u/lily.wisecarver)\
**Post date:** [February 5, 2020, 10:42pm UTC](https://community.auth0.com/t/retrieveing-user-profile-information/36425/3 "2020-02-05T22:42:10Z")

</div>

Hi @ibuoprofen,

Welcome and thank you for posting in Auth0 Community!

Do you have the `scope: 'openid profile email'` under your `src/environments/environment.ts` file?

It should look something like this:

```
// environment.ts
export const environment = {
  production: false,
  auth: {
    clientID: 'YOUR-AUTH0-CLIENT-ID',
    domain: 'YOUR-AUTH0-DOMAIN', // e.g., https://you.auth0.com/
    audience: 'YOUR-AUTH0-API-IDENTIFIER', // e.g., http://localhost:3001
    redirect: 'http://localhost:4200/callback',
    scope: 'openid profile email'
  }
};

```
