You may lookup user (UserModel) by ID and then retrieve role mappings
from it with user.getRoleMappings() .
Marek
On 05/03/18 13:28, vrinda nayak wrote:
Hello All,
For our dcm4che archive, we use Keycloak as an Authentification layer. We
have built a custom Dcm4cheEventListenerProvider which implements
Keycloak's EventListenerProvider to listen to the LOGIN and LOGOUT events.
The Event class does not have roles of a user in the details. Based on
role(s) of a user, we have to emit specific audit messages.
Can someone please advise how we can extract the role(s) of a user when
events are being listened?
Thanks in advance.
Best Regards
Vrinda Nayak
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user