# fetchUserProfile script arguments

**URL:** <https://community.auth0.com/t/fetchuserprofile-script-arguments/119730>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [October 30, 2023, 11:58am UTC](https://community.auth0.com/t/fetchuserprofile-script-arguments/119730 "2023-10-30T11:58:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gualtiero.testa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gualtiero.testa/32/50455_2.png) [@gualtiero.testa](https://community.auth0.com/u/gualtiero.testa)\
**Post date:** [October 30, 2023, 11:58am UTC](https://community.auth0.com/t/fetchuserprofile-script-arguments/119730/1 "2023-10-30T11:58:56Z")

</div>

Hi,

the fetchUserProfile script has three arguments:

`function (accessToken, context, callback)`

I understand accessToken is OAuth access\_token. What about the other two  
?  
Where I can find their documentation? What these objects contains?

Thanks,

Gualtiero

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [November 2, 2023, 7:07am UTC](https://community.auth0.com/t/fetchuserprofile-script-arguments/119730/2 "2023-11-02T07:07:52Z")

</div>

Hey @gualtiero.testa !

Looking at some of the use cases from Community,  
context and callback objects bring to you contextual data about the authentication transaction that precedes the user profile update.

Was not able to track the spec down for it, but a sample usage of the context and callback objects are mentioned in this [topic](https://community.auth0.com/t/how-to-instruct-social-connection-context-request-to-use-accept-header/115117).

Hope this helps!

---

<div class="post-metadata">

**Author:** ![gualtiero.testa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gualtiero.testa/32/50455_2.png) [@gualtiero.testa](https://community.auth0.com/u/gualtiero.testa)\
**Post date:** [November 2, 2023, 8:41am UTC](https://community.auth0.com/t/fetchuserprofile-script-arguments/119730/3 "2023-11-02T08:41:29Z")

</div>

Thanks @marcelina.barycka.

It’s curious that a key functionality like the fetchUserProfile script is not documented by Auth0.

---

<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:** [November 16, 2023, 8:42am UTC](https://community.auth0.com/t/fetchuserprofile-script-arguments/119730/4 "2023-11-16T08:42:03Z")

</div>

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