diff --git a/entity/Person_entity/entityfields/duplicateactions/children/integratecurrentintoselectedaction/onActionProcess.js b/entity/Person_entity/entityfields/duplicateactions/children/integratecurrentintoselectedaction/onActionProcess.js
index 648ecdcc39a88b74966045e32a9fbb3d7fdb707c..c5025d447a3753c2c706b00f3852d2c2efba8b4b 100644
--- a/entity/Person_entity/entityfields/duplicateactions/children/integratecurrentintoselectedaction/onActionProcess.js
+++ b/entity/Person_entity/entityfields/duplicateactions/children/integratecurrentintoselectedaction/onActionProcess.js
@@ -1,3 +1,4 @@
+import("system.tools");
 import("Employee_lib");
 import("system.vars");
 import("system.neon");
@@ -11,6 +12,12 @@ var mergeSuccess = DuplicateScannerUtils.MergePerson(sourceContactId, targetCont
 
 if(mergeSuccess)
 {
+    var user = tools.getUserByAttribute(tools.CONTACTID, sourceContactId);
+    
+    if (user) {
+    user[tools.PARAMS][tools.CONTACTID] = targetContactId;
+    tools.updateUser(user);
+    }
     var currentContactId = EmployeeUtils.getCurrentContactId();
     if(currentContactId == null)
         currentContactId = "";
diff --git a/entity/Person_entity/entityfields/duplicateactions/children/integrateselectedintocurrentaction/onActionProcess.js b/entity/Person_entity/entityfields/duplicateactions/children/integrateselectedintocurrentaction/onActionProcess.js
index 651c632fb2984ebc04e2c764444545bf75f02562..8b4940918a56a902ba28f51eb182f7802b6b107e 100644
--- a/entity/Person_entity/entityfields/duplicateactions/children/integrateselectedintocurrentaction/onActionProcess.js
+++ b/entity/Person_entity/entityfields/duplicateactions/children/integrateselectedintocurrentaction/onActionProcess.js
@@ -1,3 +1,4 @@
+import("system.tools");
 import("system.db");
 import("Employee_lib");
 import("KeywordRegistry_basic");
@@ -15,6 +16,12 @@ var mergeSuccess = DuplicateScannerUtils.MergePerson(sourceContactId, targetCont
 
 if(mergeSuccess)
 {
+    var user = tools.getUserByAttribute(tools.CONTACTID, sourceContactId);
+    
+    if (user) {
+    user[tools.PARAMS][tools.CONTACTID] = targetContactId;
+    tools.updateUser(user);
+    }
     var currentContactId = EmployeeUtils.getCurrentContactId();
     if(currentContactId == null)
         currentContactId = "";