# Getting userinformation in the access token

**URL:** <https://community.auth0.com/t/getting-userinformation-in-the-access-token/111323>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [July 15, 2023, 8:04am UTC](https://community.auth0.com/t/getting-userinformation-in-the-access-token/111323 "2023-07-15T08:04:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ImranCodeBug](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/imrancodebug/32/48505_2.png) [@ImranCodeBug](https://community.auth0.com/u/ImranCodeBug)\
**Post date:** [July 15, 2023, 8:04am UTC](https://community.auth0.com/t/getting-userinformation-in-the-access-token/111323/1 "2023-07-15T08:04:24Z")

</div>

I am using Authentication API debugger for the generating access token. but no matter whatever I do I am not getting user specific information in the access token. i have used the below scopes without any luck,

- openid profile email read:users read:current\_user read:user\_idp\_tokens
- openid profile email
- opened

Is there a setting in the API that I am missing here. i have seen some similar posts in this community. one suggested to use `rule`. But in the rule section of the Auth0 says the feature is being deprecated and I should be using action. I found no example in action which genuinely suggests how to implement this. i would have thought it should be just some information in the ID Token. I might be missing some configuration option?

Here is an example of the token that i get,

 ![auth0](https://global.discourse-cdn.com/auth0/original/3X/f/2/f29c777d8f8f43ce59eb12ab7b96ee8d1fc798f8.png)

---

<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:** [July 24, 2023, 11:59am UTC](https://community.auth0.com/t/getting-userinformation-in-the-access-token/111323/4 "2023-07-24T11:59:39Z")

</div>

Hey there, welcome to Auth0 @ImranCodeBug !

[Access token](https://auth0.com/docs/secure/tokens) after decoding will show by default only the user ID under the “sub” claim. You can add custom claims to the access token using Actions, specifically, the `api.accessToken.setCustomClaim` method.

You can read more about adding custom claims to both ID tokens and Access tokens [here](https://auth0.com/docs/get-started/apis/scopes/sample-use-cases-scopes-and-claims#learn-more).

Thanks and happy reading!

---

<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:** [August 7, 2023, 12:00pm UTC](https://community.auth0.com/t/getting-userinformation-in-the-access-token/111323/5 "2023-08-07T12:00:18Z")

</div>

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