@@ -584,7 +584,7 @@ protected List<User> createUsers(
584584 throws SQLException , GeneralSecurityException {
585585 List <User > users = new ArrayList <>();
586586 Map <Long , Set <Long >> assignments = new HashMap <>();
587- if (null != installConfiguration .getUsers ()) {
587+ if (null != installConfiguration .getNpes ()) {
588588 for (var userDTO : installConfiguration .getUsers ()) {
589589 if (userDTO .getPassword () == null || userDTO .getPassword ().isEmpty ()) {
590590 log .warn ("User {} has no password" );
@@ -613,8 +613,6 @@ protected List<User> createUsers(
613613
614614 User user = User .from (userDTO , type .get ());
615615
616- user .setIdentityType (IdentityType .NON_PERSON_ENTITY );
617-
618616
619617
620618 User finalUser = user ;
@@ -714,8 +712,8 @@ protected List<User> createNPEs(
714712 throws SQLException , GeneralSecurityException {
715713 List <User > users = new ArrayList <>();
716714 Map <Long , Set <Long >> assignments = new HashMap <>();
717- if (null != installConfiguration .getUsers ()) {
718- for (var userDTO : installConfiguration .getUsers ()) {
715+ if (null != installConfiguration .getNpes ()) {
716+ for (var userDTO : installConfiguration .getNpes ()) {
719717 if (userDTO .getPassword () == null || userDTO .getPassword ().isEmpty ()) {
720718 log .warn ("User {} has no password" );
721719 userDTO .setPassword (UUID .randomUUID ().toString ());
@@ -742,6 +740,7 @@ protected List<User> createNPEs(
742740 }
743741
744742 User user = User .from (userDTO , type .get ());
743+ user .setIdentityType (IdentityType .NON_PERSON_ENTITY );
745744
746745
747746
0 commit comments