# How to access to user profile

**URL:** <https://community.auth0.com/t/how-to-access-to-user-profile/6207>\
**Category:** Get Help\
**Tags:** profil, custom-login\
**Created:** [April 13, 2017, 1:07pm UTC](https://community.auth0.com/t/how-to-access-to-user-profile/6207 "2017-04-13T13:07:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nurlan.nurmanov](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nurlan.nurmanov](https://community.auth0.com/u/nurlan.nurmanov)\
**Post date:** [April 13, 2017, 1:07pm UTC](https://community.auth0.com/t/how-to-access-to-user-profile/6207/1 "2017-04-13T13:07:49Z")

</div>

I use custom login and I would like to access user profile.  
I use https://${AUTH0\_DOMAIN}/oauth/ro end point and added  
‘scope’: ‘openid profile’ into the connection details.  
After a successful login, I can only see id\_token, access\_token and bearer. The user profile info is missing. How could I access that info?

---

<div class="post-metadata">

**Author:** ![ashish](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ashish/32/7056_2.png) [@ashish](https://community.auth0.com/u/ashish)\
**Post date:** [April 13, 2017, 1:32pm UTC](https://community.auth0.com/t/how-to-access-to-user-profile/6207/2 "2017-04-13T13:32:13Z")

</div>

Hi @nurlan.nurmanov can you post the code that is calling the endpoint. I want to understand what you have implemented before suggesting anything.

---

<div class="post-metadata">

**Author:** ![ashish](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ashish/32/7056_2.png) [@ashish](https://community.auth0.com/u/ashish)\
**Post date:** [April 13, 2017, 1:32pm UTC](https://community.auth0.com/t/how-to-access-to-user-profile/6207/3 "2017-04-13T13:32:13Z")

</div>

Hi @nurlan.nurmanov can you post the code that is calling the endpoint. I want to understand what you have implemented before suggesting anything.

---

<div class="post-metadata">

**Author:** ![nurlan.nurmanov](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nurlan.nurmanov](https://community.auth0.com/u/nurlan.nurmanov)\
**Post date:** [April 13, 2017, 2:06pm UTC](https://community.auth0.com/t/how-to-access-to-user-profile/6207/4 "2017-04-13T14:06:47Z")

</div>

Hi,  
I think I found the answer. The documentation for /oauth/ro says the following:

Use this endpoint for API-based (active) authentication. Given the user credentials and the connection specified, it will do the authentication on the provider and return a JSON with the access\_token and id\_token.

So it only return access\_token and id\_token.

The other endpoints, such as /userinfo or /tokeninfo return user profile data. So I shall need to call those endpoints to access the profile info. Am I correct?

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [April 14, 2017, 10:43am UTC](https://community.auth0.com/t/how-to-access-to-user-profile/6207/5 "2017-04-14T10:43:25Z")

</div>

Correct - you can obtain the user profile via the `/userinfo` endpoint.

---

<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:53am UTC](https://community.auth0.com/t/how-to-access-to-user-profile/6207/6 "2018-03-02T05:53:15Z")

</div>


