Thanks @zonaut for your reply. I have used REST API for keycloak before but have not used Admin client. So have very less idea on getting started with it. I reffered the link you shared (Keycloak Admin Client in Spring Boot). I am quite sure of doing the things at the keycloak side as you mentioned in your examples but not the code part on from where to run.