diff --git a/app/ldap/server/sync.js b/app/ldap/server/sync.js index 9778bad9a3dcc..76ded3a124dc6 100644 --- a/app/ldap/server/sync.js +++ b/app/ldap/server/sync.js @@ -356,6 +356,9 @@ export function syncUserData(user, ldapUser, ldap) { _setRealName(user._id, userData.name); delete userData.name; } + userData.customFields = { + ...user.customFields, ...userData.customFields, + }; Meteor.users.update(user._id, { $set: userData }); user = Meteor.users.findOne({ _id: user._id }); }