How to add resources as per the role in the user token of keycloak
I have created resources in Keycloak with scopes, policies, and permissions. Now, I would like to store the resources associated with the roles in the payload of the user token based on their roles. How can I achieve this in the latest version of Keycloak?