# Default OIDC protocol mapper

**URL:** <https://forum.keycloak.org/t/default-oidc-protocol-mapper/879>\
**Category:** Miscellanaeous\
**Created:** [January 8, 2020, 9:58pm UTC](https://forum.keycloak.org/t/default-oidc-protocol-mapper/879 "2020-01-08T21:58:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fidgi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/fidgi/32/92_2.png) [@fidgi](https://forum.keycloak.org/u/fidgi)\
**Post date:** [January 8, 2020, 9:58pm UTC](https://forum.keycloak.org/t/default-oidc-protocol-mapper/879/1 "2020-01-08T21:58:31Z")

</div>

Hi,

is there a way to change the default OIDC protocol mapper so that all clients in a realm will inherit of this custom mapper by default ?  
We’d like to slightly change the user id that is mapped to the sub field in ID token.

regards,

---

<div class="post-metadata">

**Author:** ![mhajas](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@mhajas](https://forum.keycloak.org/u/mhajas)\
**Post date:** [January 9, 2020, 10:33am UTC](https://forum.keycloak.org/t/default-oidc-protocol-mapper/879/2 "2020-01-09T10:33:21Z")

</div>

Hi, I think [client scopes](https://www.keycloak.org/docs/latest/server_admin/index.html#_client_scopes) are what you are looking for.

---

<div class="post-metadata">

**Author:** ![fidgi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/fidgi/32/92_2.png) [@fidgi](https://forum.keycloak.org/u/fidgi)\
**Post date:** [January 10, 2020, 7:47pm UTC](https://forum.keycloak.org/t/default-oidc-protocol-mapper/879/3 "2020-01-10T19:47:17Z")

</div>

Exactly what I was looking for.

Thanks
