# Add client\_id claim to a JWT payload

**URL:** <https://community.auth0.com/t/add-client-id-claim-to-a-jwt-payload/146516>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [September 12, 2024, 2:02am UTC](https://community.auth0.com/t/add-client-id-claim-to-a-jwt-payload/146516 "2024-09-12T02:02:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduard1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eduard1/32/60331_2.png) [@Eduard1](https://community.auth0.com/u/Eduard1)\
**Post date:** [September 12, 2024, 2:02am UTC](https://community.auth0.com/t/add-client-id-claim-to-a-jwt-payload/146516/1 "2024-09-12T02:02:42Z")

</div>

I have an application and an API defined, which work, but the JWT payload returned by auth0 does not include `client_id`. How do I add it?

I followed [this article](https://auth0.com/docs/secure/tokens/json-web-tokens/create-custom-claims) and I can add `client_id1` claim but not `client_id`, which is in a restricted list. So how do I add it? Looks like it’s possible in [okta](https://developer.okta.com/docs/guides/customize-tokens-returned-from-okta/main/), so I thought it should be possible in auth0 as well.

---

<div class="post-metadata">

**Author:** ![Eduard1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eduard1/32/60331_2.png) [@Eduard1](https://community.auth0.com/u/Eduard1)\
**Post date:** [September 12, 2024, 2:05am UTC](https://community.auth0.com/t/add-client-id-claim-to-a-jwt-payload/146516/2 "2024-09-12T02:05:28Z")

</div>

I have also tried to add `client_id` to a list of scopes but it did not help.

---

<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:** [September 12, 2024, 3:22am UTC](https://community.auth0.com/t/add-client-id-claim-to-a-jwt-payload/146516/4 "2024-09-12T03:22:36Z")

</div>

Hey there @Eduard1 welcome to the community!

In the case of Auth0, the `sub` claim value is that of the `client_id`.

> **[JSON Web Token Claims](https://auth0.com/docs/secure/tokens/json-web-tokens/json-web-token-claims#registered-claims)**
>
> Describe JSON web token (JWT) claims and how they are used in 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:** [September 26, 2024, 3:23am UTC](https://community.auth0.com/t/add-client-id-claim-to-a-jwt-payload/146516/5 "2024-09-26T03:23:14Z")

</div>

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