# Get client specific roles in user-profile

**URL:** https://forum.keycloak.org/t/get-client-specific-roles-in-user-profile/4820
**Category:** Getting advice
**Tags:** saml
**Created:** [September 11, 2020, 5:41am UTC](https://forum.keycloak.org/t/get-client-specific-roles-in-user-profile/4820 "2020-09-11T05:41:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![simran](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@simran](https://forum.keycloak.org/u/simran)
#### Post date: [September 11, 2020, 5:41am UTC](https://forum.keycloak.org/t/get-client-specific-roles-in-user-profile/4820/1 "2020-09-11T05:41:58Z")

</div>

I am using keycloak via pac4j-play library. I have created 2 separate clients in keycloak and each of the client has some roles defined in it. But if a user is assigned some roles in both the clients, then I am getting all the roles for that user in the user-profile, and not just the roles specific to the client I am connected to. The protocol used is SAML.  
Can anyone suggest any fix?
