# Not retrieving the user profile

**URL:** <https://community.auth0.com/t/not-retrieving-the-user-profile/21162>\
**Category:** Get Help\
**Tags:** ios\
**Created:** [February 11, 2019, 5:54am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162 "2019-02-11T05:54:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![vardhanharsha99](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vardhanharsha99/32/10959_2.png) [@vardhanharsha99](https://community.auth0.com/u/vardhanharsha99)\
**Post date:** [February 11, 2019, 5:54am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/1 "2019-02-11T05:54:01Z")

</div>

I am not retrieving the user profile in the auth0 ios app how to get the data in userInfo

email : nil  
emailverified : nil

how to retrieve that email into userInfo

can any body help me out?

 ![29%20AM](https://global.discourse-cdn.com/auth0/original/2X/1/15c094fe869e4c71694d37e3215b57790ece9af1.png) ![47%20AM](https://global.discourse-cdn.com/auth0/original/2X/b/bcf69f41b1b3f8b7b1fbdab52b2dbdba8573ef8f.jpeg)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 11, 2019, 1:33pm UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/2 "2019-02-11T13:33:19Z")

</div>

Hey there!

Before I dig in deeper into it. Could you let me know if you’ve followed the steps described in the API explorer go get info from this endpoint? Here’s the exact reference to this doc:

[https://auth0.com/docs/api/authentication#get-user-info](https://auth0.com/docs/api/authentication#get-user-info)

 ![48](https://global.discourse-cdn.com/auth0/original/2X/0/0eb11e3f8047d877436cbfc1ff124d445fa36c2f.png)

---

<div class="post-metadata">

**Author:** ![vardhanharsha99](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vardhanharsha99/32/10959_2.png) [@vardhanharsha99](https://community.auth0.com/u/vardhanharsha99)\
**Post date:** [February 12, 2019, 5:14am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/4 "2019-02-12T05:14:51Z")

</div>

Hi ,  
i have checked in postman i have signed up with google auth0 and i am getting only some userInfo only i am not getting email, email\_verified. Even if i had signed up with auth0 i am getting only a few userInfo details i am not retrieving email and email\_verified. I want to retrieve all the userInfo RAW JSON. Please help me out.

 ![27%20AM](https://global.discourse-cdn.com/auth0/original/2X/4/4186010f98774e2b83643236ec98e914167749c5.png)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 12, 2019, 10:21am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/5 "2019-02-12T10:21:53Z")

</div>

You should be getting a JSON response following this one:

> **[Auth0 iOS / macOS SDK Quickstarts: Login](https://auth0.com/docs/quickstart/native/ios-swift)**
>
> This guide demonstrates how to integrate Auth0 with any new or existing iOS / macOS application using the Auth0.swift SDK.

Have you tried checking Postman when doing login with different authentication than Google?

---

<div class="post-metadata">

**Author:** ![vardhanharsha99](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vardhanharsha99/32/10959_2.png) [@vardhanharsha99](https://community.auth0.com/u/vardhanharsha99)\
**Post date:** [February 12, 2019, 10:39am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/6 "2019-02-12T10:39:40Z")

</div>

ya i have checked in postman i have signed up Auth0 and i am getting the same response and i am not retrieving the email and email\_verified if i am doing the custom signup through Auth0.

I had downloaded the sample of User Session and i had run the project without making any changes in the project and i had set the call back URL’s perfectly, but i am not getting the email and email\_verified of the user.

 ![49%20PM](https://global.discourse-cdn.com/auth0/original/2X/4/480bc4a541661f4e926584cb26aa741a2bb7054a.png)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 12, 2019, 10:52am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/7 "2019-02-12T10:52:17Z")

</div>

Gotchya! Let me discuss it internally and find out what might be the reasoning behind such behaviour!

---

<div class="post-metadata">

**Author:** ![vardhanharsha99](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vardhanharsha99/32/10959_2.png) [@vardhanharsha99](https://community.auth0.com/u/vardhanharsha99)\
**Post date:** [February 12, 2019, 11:47am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/8 "2019-02-12T11:47:44Z")

</div>

In “profile.userInfo” only some of the parameters are showing and remaining are showing as nil value but in Auth0 → users → Raw Json every value is coming but in profile.userInfo only some parameters are only showing. i want to get all the userInfo present in the Raw json.

You can see the debugging point int my screenshot. I want ever value present in the raw json of the userInfo in my callbackURL

 ![56%20PM](https://global.discourse-cdn.com/auth0/original/2X/b/b7ae38000bf59429e6b4bd88ac4ab33efefc68a8.jpeg)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 12, 2019, 2:08pm UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/9 "2019-02-12T14:08:05Z")

</div>

Hey @vardhanharsha99!

Can you check one more thing? Have you added `profile email` in the scope?

---

<div class="post-metadata">

**Author:** ![vardhanharsha99](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vardhanharsha99/32/10959_2.png) [@vardhanharsha99](https://community.auth0.com/u/vardhanharsha99)\
**Post date:** [February 13, 2019, 6:06am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/10 "2019-02-13T06:06:27Z")

</div>

Thank you sir,  
I had changed my scope to “openid offline\_access profile email” i.e  
.scope(“openid offline\_access profile email”). So i am getting every details of the user especially email and email\_verified in the userInfo. Thanks a lot  
Even if i am signup with Auth0 or Google i am getting the correct data in userInfo callback url. Thank you.  
**SIGNUP WITH AUTH0** - Data

 ![30%20AM](https://global.discourse-cdn.com/auth0/original/2X/b/baa47bcfdd1464eb7b33498625c2f3f737ed1401.png)

**SIGNUP WITH GOOGLE** - Data

 ![47%20AM](https://global.discourse-cdn.com/auth0/original/2X/3/3d56773eb5d351bba475f0c48d8cad220e8476cc.png)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 13, 2019, 11:10am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/11 "2019-02-13T11:10:45Z")

</div>

Perfect! Glad you were finally able to make it!

---

<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:** [February 28, 2019, 11:17am UTC](https://community.auth0.com/t/not-retrieving-the-user-profile/21162/12 "2019-02-28T11:17:14Z")

</div>

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