# Exclude some roles from user's JWT (OIDC)

**URL:** <https://forum.keycloak.org/t/exclude-some-roles-from-users-jwt-oidc/7053>\
**Category:** Securing applications\
**Tags:** oidc\
**Created:** [January 29, 2021, 9:33am UTC](https://forum.keycloak.org/t/exclude-some-roles-from-users-jwt-oidc/7053 "2021-01-29T09:33:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbranko1](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@bbranko1](https://forum.keycloak.org/u/bbranko1)\
**Post date:** [January 29, 2021, 9:33am UTC](https://forum.keycloak.org/t/exclude-some-roles-from-users-jwt-oidc/7053/1 "2021-01-29T09:33:12Z")

</div>

How can we exclude from user’s JWT (OIDC) roles assigned to another clients which are in the same realm? I want to have in user’s JWT only roles of the client I am logged in! Is it possible?
