I need assistance retrieving application role capabilities in Keycloak without assigning them to any user.

I am currently using Keycloak for identity and access management. While I am able to fetch user permissions successfully, I am encountering an issue when trying to retrieve permissions based on the roles of a particular app/client without assigning those roles to any user. Specifically, I need to understand how to query or extract the capabilities associated with application roles directly, so I can utilize this information for various administrative and configuration purposes. Any guidance or solutions on how to achieve this within Keycloak would be greatly appreciated.