I have a system in which only admin user has a privilege to see available permissions for all the users inside the realm. For an instance, consider realm PESPI which have 3 user admin, guest1, and guest2. So, admin has authority to see permissions for application resource that guest1 and guest2 have (Same thing we can do it from evaluating page in keycloak UI). I want that kind of functionality in my system my application, using which I can get the list of permissions for other users (guest1 and guest2).
In keyclak, we can see permissions of our own user using RPT token (request party token’s claims). But that is only for the user whose token it is. But how can I see permissions for guest1 and guest2 user using admin account.