# /userinfo not returning profile information, even with correct scopes

**URL:** <https://community.auth0.com/t/userinfo-not-returning-profile-information-even-with-correct-scopes/8091>\
**Category:** Get Help\
**Tags:** user-profile, scopes\
**Created:** [September 5, 2017, 7:49pm UTC](https://community.auth0.com/t/userinfo-not-returning-profile-information-even-with-correct-scopes/8091 "2017-09-05T19:49:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcquinlan.dev](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jcquinlan.dev](https://community.auth0.com/u/jcquinlan.dev)\
**Post date:** [September 5, 2017, 7:49pm UTC](https://community.auth0.com/t/userinfo-not-returning-profile-information-even-with-correct-scopes/8091/1 "2017-09-05T19:49:17Z")

</div>

The `/userinfo` endpoint is not returning any profile information even after I’ve included the `openid profile email` scopes into my instance of the Auth class.

```
auth0 = new auth0.WebAuth({
    domain: 'APP_NAME.auth0.com',
    clientID: CLIENT_ID',
    redirectUri: 'http://localhost:3000/login-callback',
    audience: 'https://APP_NAME.auth0.com/userinfo',
    responseType: 'token id_token',
    scope: 'openid profile email'
  });

```

In fact, all I get in the response is the `sub` attribute. Why is this?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [September 7, 2017, 5:53pm UTC](https://community.auth0.com/t/userinfo-not-returning-profile-information-even-with-correct-scopes/8091/2 "2017-09-07T17:53:14Z")

</div>

I could not reproduce this situation with a similar configuration to yours and then calling either `authorize` or `client.login` methods to obtain the access token that I would then use to call `/userinfo`.

Verify that your code is not overriding, when calling one of the methods above, the scope set when you create the WebAuth instance. You can also make sure that any request is indeed being made with the correct set of scopes using the browser network tools to analyse the applicable request made to the Auth0 tenant.

---

<div class="post-metadata">

**Author:** ![jcquinlan.dev](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jcquinlan.dev](https://community.auth0.com/u/jcquinlan.dev)\
**Post date:** [September 10, 2017, 10:44am UTC](https://community.auth0.com/t/userinfo-not-returning-profile-information-even-with-correct-scopes/8091/3 "2017-09-10T10:44:48Z")

</div>

Annoyingly, but fortunately, it started working. I spent a few hours refactoring my Auth service to try to figure it out, to no avail. After spending a few days away from the code, and trying it again tonight (without any updates to the code at all), the response is coming back as I would expect. Really, really bizarre. I’ll file this incident alongside any other inexplicable bug that was somehow fixed. Thanks for your time and attention!

---

<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:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/userinfo-not-returning-profile-information-even-with-correct-scopes/8091/4 "2018-03-02T05:56:20Z")

</div>


