# Why userinfo does not return full user inforamtion

**URL:** <https://devforum.okta.com/t/why-userinfo-does-not-return-full-user-inforamtion/19991>\
**Category:** Questions\
**Created:** [March 27, 2022, 6:36pm UTC](https://devforum.okta.com/t/why-userinfo-does-not-return-full-user-inforamtion/19991 "2022-03-27T18:36:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuqing](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@shuqing](https://devforum.okta.com/u/shuqing)\
**Post date:** [March 27, 2022, 6:36pm UTC](https://devforum.okta.com/t/why-userinfo-does-not-return-full-user-inforamtion/19991/1 "2022-03-27T18:36:16Z")

</div>

Hello there - I am using the following work flow to login and retrieve user information, but it only returns part of user information. Why and how to fix it? Thanks!

1. use the following to authorize  
[okta.com/oauth2/default/v1/authorize?client\_id=XYZ](http://okta.com/oauth2/default/v1/authorize?client_id=XYZ)" +  
“&response\_type=code&scope=openid&redirect\_uri=https://localhost:44314/home/index&” +  
“state=stateABCDEFG&nonce=g5ly497e8psxyz”;
2. Get the code it returned.
3. Use [okta.com/oauth2/default/v1/token](http://okta.com/oauth2/default/v1/token) with “grant\_type” of "authorization\_code to get access token
4. Get the access token and use [okta.com/oauth2/default/v1/userinfo](http://okta.com/oauth2/default/v1/userinfo) to get user information.
5. Only the following information is returned.  
{“sub”:“00u2mrya9kGV9JvGo5d7”,“accesslevel”:5,“groups”:[“Everyone”,“HPMS”]}

Why it does not return full user infor? If I want to return access token and user information in step 1 (authorize), what parameters I should use?

Thanks

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [March 27, 2022, 11:22pm UTC](https://devforum.okta.com/t/why-userinfo-does-not-return-full-user-inforamtion/19991/2 "2022-03-27T23:22:24Z")

</div>

You need to request `profile` scope additional, when you do a call to `/authorize`

---

<div class="post-metadata">

**Author:** ![shuqing](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@shuqing](https://devforum.okta.com/u/shuqing)\
**Post date:** [March 28, 2022, 4:02pm UTC](https://devforum.okta.com/t/why-userinfo-does-not-return-full-user-inforamtion/19991/3 "2022-03-28T16:02:07Z")

</div>

Thanks. This resolved the issue.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [March 29, 2022, 4:02pm UTC](https://devforum.okta.com/t/why-userinfo-does-not-return-full-user-inforamtion/19991/4 "2022-03-29T16:02:46Z")

</div>

Closed on March 29, 2022, 4:02pm UTC

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