# How and where can I find the client role in access token?

**URL:** <https://forum.keycloak.org/t/how-and-where-can-i-find-the-client-role-in-access-token/15170>\
**Category:** Tips and tricks\
**Tags:** authentication, client-configuration, oidc\
**Created:** [April 26, 2022, 9:24am UTC](https://forum.keycloak.org/t/how-and-where-can-i-find-the-client-role-in-access-token/15170 "2022-04-26T09:24:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![igorroman777](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/igorroman777/32/5676_2.png) [@igorroman777](https://forum.keycloak.org/u/igorroman777)\
**Post date:** [April 26, 2022, 9:24am UTC](https://forum.keycloak.org/t/how-and-where-can-i-find-the-client-role-in-access-token/15170/1 "2022-04-26T09:24:54Z")

</div>

My setting:

```auto
spring boot for backend
keycloak 18.0

```

My workflow:

1. i have one client: **webshop-client**
2. I have default client-role: **customerAccessRole**

I expect:  
when registering in client new user e.g. “[info@test.de](mailto:info@test.de)” gets automatically assigned default role “customerAccessRole”.

In spring boot I want to read this role from the access token.  
Max I find there

```auto
realm_access={"roles": .....

```

But I don’t find there client\_role

I need help
