# Overwrite or set standard claim in rule

**URL:** <https://community.auth0.com/t/overwrite-or-set-standard-claim-in-rule/7401>\
**Category:** Get Help\
**Tags:** claims, rules, token\
**Created:** [July 6, 2017, 4:07pm UTC](https://community.auth0.com/t/overwrite-or-set-standard-claim-in-rule/7401 "2017-07-06T16:07:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon11](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/simon11/32/4155_2.png) [@simon11](https://community.auth0.com/u/simon11)\
**Post date:** [July 6, 2017, 4:07pm UTC](https://community.auth0.com/t/overwrite-or-set-standard-claim-in-rule/7401/1 "2017-07-06T16:07:10Z")

</div>

The documentation indicates that custom claims (set in rules) need to have a http\* prefix in order to be included in the final token(s).  
Does that imply that there is no way to set a standard claim (e.g. given\_name, tid, appid, locale) within a rule?  
We would prefer to use standardized claims for the use-cases where it makes sense and and avoid cluttering the token and increasing its size.

---

<div class="post-metadata">

**Author:** ![posix4e](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/posix4e/32/7789_2.png) [@posix4e](https://community.auth0.com/u/posix4e)\
**Post date:** [July 9, 2017, 11:51pm UTC](https://community.auth0.com/t/overwrite-or-set-standard-claim-in-rule/7401/2 "2017-07-09T23:51:59Z")

</div>

I want to use postgrest which assumes a claim called role

---

<div class="post-metadata">

**Author:** ![Dru1X](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dru1x/32/7814_2.png) [@Dru1X](https://community.auth0.com/u/Dru1X)\
**Post date:** [July 19, 2017, 9:19pm UTC](https://community.auth0.com/t/overwrite-or-set-standard-claim-in-rule/7401/3 "2017-07-19T21:19:48Z")

</div>

I completely agree. It seems strange, and somewhat counter-intuitive, to have to prefix standard claims.

---

<div class="post-metadata">

**Author:** ![arun.palanivel](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@arun.palanivel](https://community.auth0.com/u/arun.palanivel)\
**Post date:** [October 4, 2017, 4:34am UTC](https://community.auth0.com/t/overwrite-or-set-standard-claim-in-rule/7401/4 "2017-10-04T04:34:17Z")

</div>

I have to override the sub since the | special char is not allowed for the vendor. Is there any way I can do it?

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/overwrite-or-set-standard-claim-in-rule/7401/5 "2018-03-02T05:55:11Z")

</div>


