# Grafana - Keycloak Authorization using role

**URL:** <https://community.grafana.com/t/grafana-keycloak-authorization-using-role/62866>\
**Category:** Authentication\
**Tags:** grafana-ui, grafana-roles, auth\
**Created:** [March 24, 2022, 3:39am UTC](https://community.grafana.com/t/grafana-keycloak-authorization-using-role/62866 "2022-03-24T03:39:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![khanms](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@khanms](https://community.grafana.com/u/khanms)\
**Post date:** [March 24, 2022, 3:39am UTC](https://community.grafana.com/t/grafana-keycloak-authorization-using-role/62866/1 "2022-03-24T03:39:57Z")

</div>

I am able to authenticate using OAuth2, my requirement is that i have 3 teams(TeamA,TeamB,TeamC). I have 9 roles created in Grafana realm in keycloak) each team has 3 roles (TeamA-readonly, TeamA-write, TeamA-readwrite…and so on). Each Team has their own datasources & their own dashboards in grafana. I want to implement a solution where if a user has certain role he can only access specific data. How do i implement this? (multi-team Authorization)

i have come across : `role_attribute_path` but don’t know how to use it? Requesting for help
