@GetMapping("/search")
	public List<User> search(User user,
							 @PageableDefault Pageable pageable,
							 @RequestParam String keywords) {
		pageable = PageRequest.of(pageable.getPageNumber(), pageable.getPageSize(), defaultIfNull(pageable.getSort(), DEFAULT_SORT));
		Page<User> pagedUsers = userService.getPagedAll(keywords, pageable);
		final String currentUserId = user.getUserId();

		return pagedUsers.stream()
			.filter(each -> !each.getUserId().equals(currentUserId))
			.filter(each -> !each.getUserId().equals(NGRINDER_INITIAL_ADMIN_USERID))
			.collect(toList());
	}
Search user list on the given keyword.

@param pageable page info
@param keywords search keyword.
@return json message
ngrinder-controller/src/main/java/org/ngrinder/user/controller/UserApiController.java