diff --git a/src/main/java/no/fintlabs/member/Member.java b/src/main/java/no/fintlabs/member/Member.java index 6552345..e884a40 100644 --- a/src/main/java/no/fintlabs/member/Member.java +++ b/src/main/java/no/fintlabs/member/Member.java @@ -19,4 +19,6 @@ public class Member { private String userType; private String UserName; private UUID identityProviderUserObjectId; + private String organisationUnitName; + private String organisationUnitId; } diff --git a/src/main/java/no/fintlabs/member/MemberService.java b/src/main/java/no/fintlabs/member/MemberService.java index 1ee88b1..0bc0edb 100644 --- a/src/main/java/no/fintlabs/member/MemberService.java +++ b/src/main/java/no/fintlabs/member/MemberService.java @@ -24,6 +24,8 @@ public Member create(User user) { .userType(user.getUserType()) .UserName(user.getUserName()) .identityProviderUserObjectId(user.getIdentityProviderUserObjectId()) + .organisationUnitId(user.getMainOrganisationUnitId()) + .organisationUnitName(user.getMainOrganisationUnitName()) .build(); } }