# Policy evaluation based on client role

**URL:** <https://forum.keycloak.org/t/policy-evaluation-based-on-client-role/25624>\
**Category:** Getting advice\
**Created:** [April 17, 2024, 1:46pm UTC](https://forum.keycloak.org/t/policy-evaluation-based-on-client-role/25624 "2024-04-17T13:46:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mano-lis](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/mano-lis/32/10252_2.png) [@mano-lis](https://forum.keycloak.org/u/mano-lis)\
**Post date:** [April 17, 2024, 1:46pm UTC](https://forum.keycloak.org/t/policy-evaluation-based-on-client-role/25624/1 "2024-04-17T13:46:10Z")

</div>

Is there a way to evaluate policies based on client roles like with the Evaluate tool in UI or with the  
`POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/evaluate` REST api endpoint?  
Unfortunately these two options only work with realm roles.
