# How to get access to context data from the user details page

**URL:** <https://community.auth0.com/t/how-to-get-access-to-context-data-from-the-user-details-page/101603>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [March 2, 2023, 1:40am UTC](https://community.auth0.com/t/how-to-get-access-to-context-data-from-the-user-details-page/101603 "2023-03-02T01:40:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ivan/32/40625_2.png) [@ivan](https://community.auth0.com/u/ivan)\
**Post date:** [March 2, 2023, 1:40am UTC](https://community.auth0.com/t/how-to-get-access-to-context-data-from-the-user-details-page/101603/1 "2023-03-02T01:40:10Z")

</div>

Hi,

Once a user has logged in, I see a context section on the details page. How do i access to data in the context section there?

Thanks,

Ivan

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 2, 2023, 6:37pm UTC](https://community.auth0.com/t/how-to-get-access-to-context-data-from-the-user-details-page/101603/3 "2023-03-02T18:37:00Z")

</div>

Hi @ivan,

Thanks for reaching out to the Auth0 Community!

> [@ivan](#):
>
> Once a user has logged in, I see a context section on the details page. How do i access to data in the context section there?

I understand that you are looking to get the information from the Auth0 Dashboard \> Logs \> Context Data section.

To do so, you will need to use the Management API [Search log events endpoint](https://auth0.com/docs/api/management/v2#!/Logs/get_logs) to look for successful login events (`s` log event type code).

And then use the [Get a log event by id endpoint](https://auth0.com/docs/api/management/v2#!/Logs/get_logs_by_id) to get the context data for that log\_id.

If you only need to get the user information, there is an option to call the [Get a user endpoint](https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id) as well.

Does that help?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ivan/32/40625_2.png) [@ivan](https://community.auth0.com/u/ivan)\
**Post date:** [March 3, 2023, 2:42am UTC](https://community.auth0.com/t/how-to-get-access-to-context-data-from-the-user-details-page/101603/4 "2023-03-03T02:42:07Z")

</div>

Hi @rueben.tiow ,

Thanks for the quick response. During the oaurh2 flow, there is the idtoken that is returned with the access token. I would like to get that idtoken token.

To be clear, it is in each user profile in the Users section, under the details section, context section which is part of the Identity Provider Attributes section.

Is this section accessible with the api calls you mentioned, or is there a way to return that context as week in the Fetch User Details script too?

Thanks

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 4, 2023, 12:08am UTC](https://community.auth0.com/t/how-to-get-access-to-context-data-from-the-user-details-page/101603/5 "2023-03-04T00:08:07Z")

</div>

Hi @ivan,

Thank you for your response.

> [@ivan](#):
>
> I would like to get that idtoken token.

You can get the ID Token by specifying the `openid` scope in the `/authorize` request.

For example:

```auto
https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope=openid&
    state={state}

```

> [@ivan](#):
>
> Is this section accessible with the api calls you mentioned, or is there a way to return that context as week in the Fetch User Details script too?

Yes, this information should be available by calling the [Get a user endpoint.](https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id)

Please let me know if you have any additional questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ivan/32/40625_2.png) [@ivan](https://community.auth0.com/u/ivan)\
**Post date:** [March 4, 2023, 12:43am UTC](https://community.auth0.com/t/how-to-get-access-to-context-data-from-the-user-details-page/101603/6 "2023-03-04T00:43:38Z")

</div>

Wonderful, thanks Reuben.

---

<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 18, 2023, 12:44am UTC](https://community.auth0.com/t/how-to-get-access-to-context-data-from-the-user-details-page/101603/7 "2023-03-18T00:44:20Z")

</div>

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