We have a scenario where we are polling users from Active directory to keycloak and this works perfectly fine and any recently changed user automatically gets added in keycloak .But here I have to load same users from Keycloak to my SpringBoot application DB on certain interval say 1 hour . So the high level data flow is like below Active Directory -> KeyCloak ->Spring Boot Service Poll->Application DB Need to find a best way to process only users who have recently been modified in keycloak so that I shall have less number of records to update in Application DB.
Keycloak keycloakInstance=// pass Keycloak URL to KeycloakBuilder
Userresource userResource=// using keycloakInstance pass realmName and getUsers List uersListFfromkeyCLoak// Here need only users who have changed in last one hour
Enjoy the full beauty of the english language. Embedded in this tiny ad: