diff --git a/jans-auth-server/agama/inboundID/src/main/java/io/jans/inbound/IdentityProcessor.java b/jans-auth-server/agama/inboundID/src/main/java/io/jans/inbound/IdentityProcessor.java index 73439b77fad..a08b0a428af 100644 --- a/jans-auth-server/agama/inboundID/src/main/java/io/jans/inbound/IdentityProcessor.java +++ b/jans-auth-server/agama/inboundID/src/main/java/io/jans/inbound/IdentityProcessor.java @@ -102,13 +102,13 @@ public String process(Map> profile) { logger.info("Updating user {}", uid); user.setCustomAttributes(attributesForUpdate( user.getCustomAttributes(), profile2, provider.isCumulativeUpdate())); - - //ugly hack - Optional.ofNullable(user.getAttributeValues("jansExtUid")) - .map(l -> l.toArray(new String[0])).ifPresent(user::setExternalUid); - - userService.updateUser(user); } + + //ugly hack + Optional.ofNullable(user.getAttributeValues("jansExtUid")) + .map(l -> l.toArray(new String[0])).ifPresent(user::setExternalUid); + + userService.updateUser(user); } else { logger.info("Adding user {}", uid);