diff --git a/src/app/action/controllers/PreProcessActionController.php b/src/app/action/controllers/PreProcessActionController.php
index 7e72693450e565ae9ef50187f775b0ebe3eb1959..3fb9294fae41d4b1576131e87ce7af32dc3076c9 100755
--- a/src/app/action/controllers/PreProcessActionController.php
+++ b/src/app/action/controllers/PreProcessActionController.php
@@ -1422,13 +1422,13 @@ class PreProcessActionController
             return $response->withStatus(403)->withJson(['errors' => 'Document out of perimeter']);
         }
 
-        $user = UserModel::getById(['id' => $args['userId'], 'select' => ['user_id']]);
+        $user = UserModel::getById(['id' => $args['userId'], 'select' => ['id']]);
         if (empty($user)) {
             return $response->withStatus(400)->withJson(['errors' => 'User does not exist']);
         }
 
         $changeDestination = true;
-        $entities = UserEntityModel::get(['select' => ['entity_id'], 'where' => ['user_id = ?'], 'data' => [$user['user_id']]]);
+        $entities = UserEntityModel::get(['select' => ['entity_id'], 'where' => ['user_id = ?'], 'data' => [$user['id']]]);
         $resource = ResModel::getById(['select' => ['destination'], 'resId' => $args['resId']]);
         foreach ($entities as $entity) {
             if ($entity['entity_id'] == $resource['destination']) {