# Default Custom authorization server - sub claim set to appuser.userName?

**URL:** <https://devforum.okta.com/t/default-custom-authorization-server-sub-claim-set-to-appuser-username/15162>\
**Category:** Questions\
**Created:** [July 18, 2021, 7:45pm UTC](https://devforum.okta.com/t/default-custom-authorization-server-sub-claim-set-to-appuser-username/15162 "2021-07-18T19:45:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hassleboff](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Hassleboff](https://devforum.okta.com/u/Hassleboff)\
**Post date:** [July 18, 2021, 7:45pm UTC](https://devforum.okta.com/t/default-custom-authorization-server-sub-claim-set-to-appuser-username/15162/1 "2021-07-18T19:45:04Z")

</div>

I’m aware that this can be changed, but I’m just curious as to why the sub claim is set to be either the appuser.userName or the client id by default, rather than the actual user id (uid) in the default custom authorization server provided by Okta.

sub (appuser != null) ? appuser.userName: app.clientId

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 8, 2024, 6:47pm UTC](https://devforum.okta.com/t/default-custom-authorization-server-sub-claim-set-to-appuser-username/15162/2 "2024-02-08T18:47:59Z")

</div>

Closed on February 8, 2024, 6:47pm UTC


