How can we create users in ERPnext and then push it to KeyCloak

Does anyone know a simple way of creating users in ERPnext, which gets automatically get created in KeyCloak?

There must be a way of doing this by writing custom code to access Keycloak Admin features but apart from it, is there any quick way to get it through ERPnext?