diff --git a/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/storage/spi/UserSearchService.java b/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/storage/spi/UserSearchService.java index 67bf5d92..f2206927 100644 --- a/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/storage/spi/UserSearchService.java +++ b/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/storage/spi/UserSearchService.java @@ -28,7 +28,7 @@ private UserSearchService() {} public static List getUserByKey(String key, String value) { Map userRequest = new HashMap<>(); Map request = new HashMap<>(); - request.put("key",key); + request.put("key",key.toLowerCase()); request.put("value", value); request.put("fields", Arrays.asList("email","firstName","lastName","id","phone","userName","countryCode","status")); userRequest.put("request", request);