# How do I get user profile without using "profile" in scope?

**URL:** <https://community.auth0.com/t/how-do-i-get-user-profile-without-using-profile-in-scope/7005>\
**Category:** Get Help\
**Tags:** user-profile, profile\
**Created:** [June 10, 2017, 1:00am UTC](https://community.auth0.com/t/how-do-i-get-user-profile-without-using-profile-in-scope/7005 "2017-06-10T01:00:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaiwant.mulik](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jaiwant.mulik](https://community.auth0.com/u/jaiwant.mulik)\
**Post date:** [June 10, 2017, 1:00am UTC](https://community.auth0.com/t/how-do-i-get-user-profile-without-using-profile-in-scope/7005/1 "2017-06-10T01:00:01Z")

</div>

Using `scope: openid profile` when authenticating in my client gives a “using profile in scope is not recommended”]([https://auth0.com/docs/libraries/lock/v10/sending-authentication-parameters#supported-parameters](https://auth0.com/docs/libraries/lock/v10/sending-authentication-parameters#supported-parameters)) warning. If I use `scope: openid ` auth result only contains the `sub` claim, missing the `name`, `nickname` and `email` fields. How do I get complete user profile without using profile in scope?

Do I have to auth once with `scope: openid profile` to get the user profile and the again with `scope: openid` to get an access token to pass to the my server API?

---

<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:** [June 12, 2017, 3:53pm UTC](https://community.auth0.com/t/how-do-i-get-user-profile-without-using-profile-in-scope/7005/2 "2017-06-12T15:53:22Z")

</div>

The warning in question is only meaningful if your client is performing authentication in a non-OIDC compliant way. In this mode (aka legacy) requesting the profile would return the full profile information about the user which under certain situations and depending on the size of the profiles of your users could lead to issues; hence the warning.

For [OpenID Connect compliant authentication](https://auth0.com/docs/api-auth/intro) including the `profile` in the scope only means that the OIDC claims associated with the profile (see [OIDC Scope Claims](http://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims)) will be returned in the ID token; it’s not the complete user profile neither does it include user metadata which sometimes contains significant amount of data.

**In conclusion** , that is is just a warning that if you’re already using OIDC compliance you can mostly ignore because it does not apply or if you’re still using legacy authentication then you need to review it based on the characteristics of your users profiles. In general, if you’re not storing a significant amount of data in user metadata nor using a external IdP that returns a lot of profile information then you can also ignore that warning even when using legacy authentication.

---

<div class="post-metadata">

**Author:** ![jaiwant.mulik](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jaiwant.mulik](https://community.auth0.com/u/jaiwant.mulik)\
**Post date:** [June 12, 2017, 8:31pm UTC](https://community.auth0.com/t/how-do-i-get-user-profile-without-using-profile-in-scope/7005/3 "2017-06-12T20:31:05Z")

</div>

Thanks for your reply. That is a relief! I am using the `audience` parameter which means that I am using the OIDC compliant authentication.

---

<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:54am UTC](https://community.auth0.com/t/how-do-i-get-user-profile-without-using-profile-in-scope/7005/4 "2018-03-02T05:54:32Z")

</div>


