# Set custom iss / sub claim

**URL:** <https://community.auth0.com/t/set-custom-iss-sub-claim/52815>\
**Category:** JWT.io\
**Tags:** jwt, login, auth0\
**Created:** [November 6, 2020, 10:33am UTC](https://community.auth0.com/t/set-custom-iss-sub-claim/52815 "2020-11-06T10:33:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshua2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joshua2/32/12921_2.png) [@joshua2](https://community.auth0.com/u/joshua2)\
**Post date:** [November 6, 2020, 10:33am UTC](https://community.auth0.com/t/set-custom-iss-sub-claim/52815/1 "2020-11-06T10:33:06Z")

</div>

Hi,

I’d like to set a custom **iss** uer and **sub** ject claim in the generated JWTs.  
I can’t find a way to reconfigure those and overriding them in hooks also doesn’t seem to work.

Is there any way to changet those two properties?

Thanks.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 9, 2020, 9:09pm UTC](https://community.auth0.com/t/set-custom-iss-sub-claim/52815/3 "2020-11-09T21:09:59Z")

</div>

Hi @joshua2,

Welcome to the Community!

Please take a moment to search for your questions before posting. Here are a few threads that talk about how this is not possible and have potential workaround solutions:

> [@Is it possible to override the 'sub' claim in an id\_token?](https://community.auth0.com/t/is-it-possible-to-override-the-sub-claim-in-an-id-token/25324):
>
> We are migrating users from another IdP. These users already have a user Id assigned by that IdP. Our applications that use our legacy IdP use the ‘sub’ field in the id\_token to uniquely identify the user. However, if we migrate to Auth0, I don’t want my app owners to see a new user Id in the ‘sub’ claim when the user signs-in. To them, this would look like a new user. By default, Auth0 uses the user\_id field for the ‘sub’ claim in the id\_token. Is is possible to override this mapping wit…

> [@Is it possible to override the 'sub' claim in an id\_token? AWS Cognito federation to Auth0](https://community.auth0.com/t/is-it-possible-to-override-the-sub-claim-in-an-id-token-aws-cognito-federation-to-auth0/41918):
>
> Ran into the exact same issue, is there a possibility now? I am adding Auth0 as Identity Provider in AWS Cognito.

---

<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 24, 2020, 9:10pm UTC](https://community.auth0.com/t/set-custom-iss-sub-claim/52815/4 "2020-11-24T21:10:00Z")

</div>

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