# Need accessToken in Action to make additional Social calls to set app\_metadata?

**URL:** <https://community.auth0.com/t/need-accesstoken-in-action-to-make-additional-social-calls-to-set-app-metadata/97704>\
**Category:** Get Help\
**Tags:** app\_metadata, custom-social-connec, actions, access-token, auth0\
**Created:** [January 7, 2023, 11:03pm UTC](https://community.auth0.com/t/need-accesstoken-in-action-to-make-additional-social-calls-to-set-app-metadata/97704 "2023-01-07T23:03:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 23, 2023, 6:54pm UTC](https://community.auth0.com/t/need-accesstoken-in-action-to-make-additional-social-calls-to-set-app-metadata/97704/7 "2023-01-23T18:54:10Z")

</div>

Hey there @2vYEjLFtkUPpbDR sorry for the delayed response!

> [@2vYEjLFtkUPpbDR](#):
>
> This makes me ask, what is the point of a Custom Social Connection if you can’t save additional custom user/app data from that Custom Social Connection. Any valuable third party login and API will have protected routes that need an accessToken to retrieve scope/claims data. There is currently no way to save this data?

You’re correct in that the access token won’t be available until the login flow (and action(s)) is complete, but you will have access to the token in the [user’s identities array](https://auth0.com/docs/api/management/v2#!/Users/get_users). I don’t see why you couldn’t use the access token available on the user to get those details and add them to metadata outside the scope of an action.

> **[Identity Provider Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/identity-provider-access-tokens)**
>
> Understand third-party access tokens issued by identity providers after user authentication and how to use them to call the third-party APIs.

In terms of then getting that on login once set, you’d probably want to add metadata as a custom claim:

> [@How do I get User Metadata in the Login](https://community.auth0.com/t/how-do-i-get-user-metadata-in-the-login/71465/2):
>
> Hey @solid, The reason you didn’t receive the user’s metadata is because metadata is not a standard claim so it will not be included in ID Tokens by default. To include it, you must write a Rule to copy user\_metadata properties to the ID token. This is explained in detail here: [Add custom claims to a token](https://auth0.com/docs/configure/apis/scopes/sample-use-cases-scopes-and-claims#add-custom-claims-to-a-token). I hope this helps. More information:

Let us know if this helps!

---

_[View the full topic](https://community.auth0.com/t/need-accesstoken-in-action-to-make-additional-social-calls-to-set-app-metadata/97704)._
