# JWT token: sub claim format

**URL:** <https://community.auth0.com/t/jwt-token-sub-claim-format/63112>\
**Category:** Get Help\
**Tags:** jwt\
**Created:** [May 20, 2021, 2:07pm UTC](https://community.auth0.com/t/jwt-token-sub-claim-format/63112 "2021-05-20T14:07:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgaudin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cgaudin/32/25216_2.png) [@cgaudin](https://community.auth0.com/u/cgaudin)\
**Post date:** [May 20, 2021, 2:07pm UTC](https://community.auth0.com/t/jwt-token-sub-claim-format/63112/1 "2021-05-20T14:07:14Z")

</div>

Hi,

I have a question regarding the format of the claim `sub`.  
Current value is the Auth0 user ID: `identity_provider|user_id` and I wanted to know if it’s possible to override it somehow?

I found several posts bringing up this question and in which the answer was no and:

> Unlikely to change in the foreseeable future: yes; guaranteed: no

Associated posts:

- [Sub claim format (Kubernetes restricted set)](https://community.auth0.com/t/sub-claim-format-kubernetes-restricted-set/21996)
- [Sub claim format for M2M tokens](https://community.auth0.com/t/sub-claim-format-for-m2m-tokens/39451)

I allowed myself to ask it again if, by any chance, the future is now and it has changed despite the “unlikely” probability?

One of our use case is that we plugged AWS Cognito with Auth0 and Cognito uses the `sub` claim for the username in its user pool and doesn’t allow, specifically for the username, to map with another claim (e.g.: a custom claim as mentioned it the other posts). And we have another AWS application that uses the Cognito username but does not allow the pipe ‘|’ character in it so we cannot use Auth0 for this application.

Thanks in advance,

Cyril.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 27, 2021, 8:09pm UTC](https://community.auth0.com/t/jwt-token-sub-claim-format/63112/2 "2021-05-27T20:09:56Z")

</div>

Hi @cgaudin,

Unfortunately, it is still not possible to override the format of the `sub` claim (user ID). It would be great to share your use case with the community and our product team via our Feedback category:

> **[Feedback](https://community.auth0.com/c/feedback/95)**
>
> Submit and vote on product feedback and feature requests.

---

<div class="post-metadata">

**Author:** ![cgaudin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cgaudin/32/25216_2.png) [@cgaudin](https://community.auth0.com/u/cgaudin)\
**Post date:** [May 31, 2021, 10:17am UTC](https://community.auth0.com/t/jwt-token-sub-claim-format/63112/4 "2021-05-31T10:17:16Z")

</div>

Thanks for your answer @stephanie.chamblee .

> It would be great to share your use case with the community and our product team via our Feedback category

I’ll do that.

---

<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:** [June 15, 2021, 10:18am UTC](https://community.auth0.com/t/jwt-token-sub-claim-format/63112/5 "2021-06-15T10:18:02Z")

</div>

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