diff --git a/security-admin/src/main/java/org/apache/ranger/service/XGroupService.java b/security-admin/src/main/java/org/apache/ranger/service/XGroupService.java index 6507603043..1f033b33dd 100644 --- a/security-admin/src/main/java/org/apache/ranger/service/XGroupService.java +++ b/security-admin/src/main/java/org/apache/ranger/service/XGroupService.java @@ -81,7 +81,7 @@ public XGroupService() { "XXGroupUser groupUser", "obj.id = groupUser.parentGroupId")); searchFields.add(new SearchField("syncSource", "obj.syncSource", - SearchField.DATA_TYPE.STRING, SearchField.SEARCH_TYPE.FULL)); + SearchField.DATA_TYPE.STRING, SearchField.SEARCH_TYPE.PARTIAL)); createdByUserId = PropertiesUtil.getLongProperty("ranger.xuser.createdByUserId", 1); diff --git a/security-admin/src/main/java/org/apache/ranger/service/XUserService.java b/security-admin/src/main/java/org/apache/ranger/service/XUserService.java index d7c011ca39..166efe82c4 100644 --- a/security-admin/src/main/java/org/apache/ranger/service/XUserService.java +++ b/security-admin/src/main/java/org/apache/ranger/service/XUserService.java @@ -122,7 +122,7 @@ public XUserService() { "xXPortalUser.id=xXPortalUserRole.userId and xXPortalUser.loginId = obj.name ")); searchFields.add(new SearchField("syncSource", "obj.syncSource", - SearchField.DATA_TYPE.STRING, SearchField.SEARCH_TYPE.FULL)); + SearchField.DATA_TYPE.STRING, SearchField.SEARCH_TYPE.PARTIAL)); createdByUserId = PropertiesUtil.getLongProperty("ranger.xuser.createdByUserId", 1);