private static Collection<UserWithPassword> getter(HudsonPrivateSecurityRealm target) {
        return target.getAllUsers().stream()
                .map(u -> {
                    UserWithPassword user = new UserWithPassword(u.getId(), null);
                    user.setName(u.getFullName());
                    user.setDescription(u.getDescription());
                    List<UserProperty> properties = u.getAllProperties().stream()
                            .filter(
                                    userProperty -> !userProperty
                                            .getClass()
                                            .getName()
                                            .equals(
                                                    "com.cloudbees.plugins.credentials.UserCredentialsProvider$UserCredentialsProperty"))
                            .collect(Collectors.toList());
                    user.setProperties(properties);

                    return user;
                })
                .collect(Collectors.toList());
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
plugin/src/main/java/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfigurator.java