<Cannot set Keycloak user attribute in EventListen...
# community-feeds
r
Cannot set Keycloak user attribute in EventListenerProvider When using "onEvent" method in my custom EventListenerProvider, I need to set attribute "isAfterFirstLogin" to "true", but only get exception: java.lang.IllegalStateException: Cannot access delegate without a transaction I was trying to use KeycloakTransactionManager transactionManager = session.getTransactionManager(); transactionManager.begin(); transactionManager.commit(); and KeycloakModelUtils.runJobInTransaction but didn't succeed (the same exception). Fetching the attributes map, and...