I want to dynamically draw menus in my application. What is the best way to do this using keycloak ?(Any policies/permissions)

I want to dynamically draw menus in my application. What is the best way to do this using keycloak ?I am using spring boot with spring security.