diff --git a/drush/default_content.drush.inc b/drush/default_content.drush.inc
index 6c4ace0..43acdbc 100644
--- a/drush/default_content.drush.inc
+++ b/drush/default_content.drush.inc
@@ -29,6 +29,7 @@ function default_content_drush_command() {
     ],
     'options' => [
       'folder' => dt('Folder to export to, entities are grouped by entity type into directories.'),
+      'include-core-users' => dt('Export user entities created by core'),
     ],
     'aliases' => ['dcer'],
     'required-arguments' => 1,
@@ -79,6 +80,8 @@ function drush_default_content_export_references($entity_type_id, $entity_id = N
   $exporter = \Drupal::service('default_content.exporter');
 
   $folder = drush_get_option('folder', '.');
+  $include_core_users = drush_get_option('include-core-users', FALSE);
+
   if (is_null($entity_id)) {
     $entities = \Drupal::entityQuery($entity_type_id)->execute();
   }
@@ -87,7 +90,7 @@ function drush_default_content_export_references($entity_type_id, $entity_id = N
   }
   // @todo Add paging.
   foreach ($entities as $entity_id) {
-    $serialized_by_type = $exporter->exportContentWithReferences($entity_type_id, $entity_id);
+    $serialized_by_type = $exporter->exportContentWithReferences($entity_type_id, $entity_id, $include_core_users);
     $exporter->writeDefaultContent($serialized_by_type, $folder);
   }
 }
diff --git a/src/Exporter.php b/src/Exporter.php
index 0140568..1d2ac20 100644
--- a/src/Exporter.php
+++ b/src/Exporter.php
@@ -126,7 +126,7 @@ class Exporter implements ExporterInterface {
   /**
    * {@inheritdoc}
    */
-  public function exportContentWithReferences($entity_type_id, $entity_id) {
+  public function exportContentWithReferences($entity_type_id, $entity_id, $include_core_users = TRUE) {
     $storage = $this->entityTypeManager->getStorage($entity_type_id);
     $entity = $storage->load($entity_id);
 
@@ -144,6 +144,10 @@ class Exporter implements ExporterInterface {
     $this->linkManager->setLinkDomain($this->linkDomain);
     // Serialize all entities and key them by entity TYPE and uuid.
     foreach ($entities as $entity) {
+      // Skip core users unless they should be included.
+      if (!$include_core_users && $entity->getEntityTypeId() == 'user' && in_array($entity->id(), [0, 1])) {
+        continue;
+      }
       $serialized_entities_per_type[$entity->getEntityTypeId()][$entity->uuid()] = $this->serializer->serialize($entity, 'hal_json', ['json_encode_options' => JSON_PRETTY_PRINT]);
     }
     $this->linkManager->setLinkDomain(FALSE);
diff --git a/src/ExporterInterface.php b/src/ExporterInterface.php
index 20ea8bd..a64642e 100644
--- a/src/ExporterInterface.php
+++ b/src/ExporterInterface.php
@@ -27,11 +27,14 @@ interface ExporterInterface {
    *   The entity type ID.
    * @param mixed $entity_id
    *   The entity ID to export.
+   * @param bool $include_core_users
+   *   Whether to include user accounts with uid 0 and 1 (anonymous user and
+   *   admin user).
    *
    * @return string[][]
    *   The serialized entities keyed by entity type and UUID.
    */
-  public function exportContentWithReferences($entity_type_id, $entity_id);
+  public function exportContentWithReferences($entity_type_id, $entity_id, $include_core_users = TRUE);
 
   /**
    * Exports all of the content defined in a module's info file.
diff --git a/src/Importer.php b/src/Importer.php
index 600ed5c..663c114 100644
--- a/src/Importer.php
+++ b/src/Importer.php
@@ -83,6 +83,24 @@ class Importer implements ImporterInterface {
    */
   protected $accountSwitcher;
 
+  /**
+   * Array to hold the local UUIDs of what we consider core users.
+   *
+   * Keys are uids, values are UUIDS.
+   *
+   * @var array
+   */
+  protected $coreUsersUuids = [];
+
+  /**
+   * Array to hold UUIDs found in the import that correspond to core users.
+   *
+   * Keys are uids, values are arrays of UUIDs.
+   *
+   * @var array
+   */
+  protected $coreUsersImportUuids = [];
+
   /**
    * Constructs the default content manager.
    *
@@ -109,6 +127,55 @@ class Importer implements ImporterInterface {
     $this->scanner = $scanner;
     $this->linkDomain = $link_domain;
     $this->accountSwitcher = $account_switcher;
+
+    $coreUserUids = [0, 1];
+    $this->coreUsersUuids = array_map(function ($uid) {
+      return $this->entityTypeManager->getStorage('user')->load($uid)->uuid();
+    }, $coreUserUids);
+  }
+
+  /**
+   * Extract core user Uuids as recorded in an item to be imported.
+   *
+   * Results are stored in $coreUsersImportUuids.
+   *
+   * @param array $item
+   *   Item to extract core user Uuids from.
+   */
+  protected function overrideCoreUsersUuids(&$item) {
+    // If the content is from a system user, override its UUID to match the
+    // one of the current site.
+    $userPatternTemplate = "/user/%d?_format=hal_json";
+    if ($item['_links']['type']['href'] === "http://drupal.org/rest/type/user/user") {
+      foreach ($this->coreUsersUuids as $uid => $uuid) {
+        $userPattern = sprintf($userPatternTemplate, $uid);
+        // Check against the pattern.
+        if (strpos($item['_links']['self']['href'], $userPattern) !== FALSE) {
+          // Add the found UUID to the collection of import UUIDs, override the
+          // UUID in the import data with the UUID from the actual user.
+          $overriddenUuid = $item['uuid'][0]['value'];
+          $item['uuid'][0]['value'] = $uuid;
+          if (!isset($this->coreUsersImportUuids[$uid])) {
+            $this->coreUsersImportUuids[$uid] = [];
+          }
+          if (!in_array($overriddenUuid, $this->coreUsersImportUuids[$uid])) {
+            $this->coreUsersImportUuids[$uid][] = $overriddenUuid;
+          }
+        }
+      }
+    }
+  }
+
+  /**
+   * Replace import core UUIDs with the local UUIDs.
+   *
+   * @param string $contents
+   *   Serialized content to manipulate.
+   */
+  protected function replaceCoreUserUuidsInString(&$contents) {
+    foreach ($this->coreUsersUuids as $uid => $uuid) {
+      $contents = str_replace($this->coreUsersUuids[$uid], $uuid, $contents);
+    }
   }
 
   /**
@@ -140,6 +207,7 @@ class Importer implements ImporterInterface {
           $contents = $this->parseFile($file);
           // Decode the file contents.
           $decoded = $this->serializer->decode($contents, 'hal_json');
+          $this->overrideCoreUsersUuids($decoded);
           // Get the link to this entity.
           $item_uuid = $decoded['uuid'][0]['value'];
 
@@ -164,6 +232,7 @@ class Importer implements ImporterInterface {
           // Here we need to resolve our dependencies:
           foreach ($decoded['_embedded'] as $embedded) {
             foreach ($embedded as $item) {
+              $this->overrideCoreUsersUuids($item);
               $uuid = $item['uuid'][0]['value'];
               $edge = $this->getVertex($uuid);
               $this->graph[$vertex->id]['edges'][$edge->id] = TRUE;
@@ -180,6 +249,7 @@ class Importer implements ImporterInterface {
           $entity_type_id = $file->entity_type_id;
           $class = $this->entityTypeManager->getDefinition($entity_type_id)->getClass();
           $contents = $this->parseFile($file);
+          $this->replaceCoreUserUuidsInString($contents);
           $entity = $this->serializer->deserialize($contents, $class, 'hal_json', ['request_method' => 'POST']);
           $entity->enforceIsNew(TRUE);
           // Ensure that the entity is not owned by the anonymous user.
