We are importing users to KeyCloak using Java code, and we are using keycloak-admin-client
API.
Tried Setting password as follows , but it is not setting/persisting the password for the user.
CredentialRepresentation credential = new CredentialRepresentation();
credential.setType(CredentialRepresentation.PASSWORD);
credential.setValue("password");
userRepresentation.setCredentials(Arrays.asList(credential));
Is there other way to set user credentials