UserSpecs.hasAuthType(LDAPConstants.LDAP_FLAG)
).and(
Specifications.not(UserSpecs.userIsNameNotOneOf(usernames))
);
final List<User> usersFound = userRepository.findAll(spec);
Collection<Integer> userIds = Collections2.transform(usersFound, new Function<User, Integer>() {
@Nullable
@Override
public Integer apply(@Nonnull User input) {
return input.getId();