diff --git a/component/service/src/main/java/org/exoplatform/social/rest/impl/user/UserRest.java b/component/service/src/main/java/org/exoplatform/social/rest/impl/user/UserRest.java index b0638b42a75..74ab2bdf0df 100644 --- a/component/service/src/main/java/org/exoplatform/social/rest/impl/user/UserRest.java +++ b/component/service/src/main/java/org/exoplatform/social/rest/impl/user/UserRest.java @@ -1146,9 +1146,6 @@ public Response updateUserProfileAttributes(@Context if (!(profileProperty.isMultiValued() || !profileProperty.getChildren().isEmpty())) { updateProfileField(profile, profileProperty.getPropertyName(), profileProperty.getValue(), false); updateProfilePropertyVisibility(profileProperty); - if (profileProperty.getPropertyName().equals(Profile.FIRST_NAME) || profileProperty.getPropertyName().equals(Profile.LAST_NAME) ) { - profile = getUserIdentity(username).getProfile(); - } } else { List> maps = new ArrayList<>(); profileProperty.getChildren().forEach(profilePropertySettingEntity -> {