diff --git a/drush/default_content.drush.inc b/drush/default_content.drush.inc
index 6c4ace02..43acdbca 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/Commands/DefaultContentCommands.php b/src/Commands/DefaultContentCommands.php
index 9aa54e16..cee082ff 100644
--- a/src/Commands/DefaultContentCommands.php
+++ b/src/Commands/DefaultContentCommands.php
@@ -62,9 +62,10 @@ public function contentExport($entity_type_id, $entity_id, $options = ['file' =>
    *
    * @command default-content:export-references
    * @option folder Folder to export to, entities are grouped by entity type into directories.
+   * @option include-core-users Export user entities created by core
    * @aliases dcer
    */
-  public function contentExportReferences($entity_type_id, $entity_id = NULL, $options = ['folder' => NULL]) {
+  public function contentExportReferences($entity_type_id, $entity_id = NULL, $options = ['folder' => NULL, 'include-core-users' => TRUE]) {
     $folder = $options['folder'];
     if (is_null($entity_id)) {
       $entities = \Drupal::entityQuery($entity_type_id)->execute();
@@ -74,7 +75,7 @@ public function contentExportReferences($entity_type_id, $entity_id = NULL, $opt
     }
     // @todo Add paging.
     foreach ($entities as $entity_id) {
-      $serialized_by_type = $this->defaultContentExporter->exportContentWithReferences($entity_type_id, $entity_id);
+      $serialized_by_type = $this->defaultContentExporter->exportContentWithReferences($entity_type_id, $entity_id, $options['include-core-users']);
       $this->defaultContentExporter->writeDefaultContent($serialized_by_type, $folder);
     }
   }
diff --git a/src/Exporter.php b/src/Exporter.php
index 01405683..1d2ac201 100644
--- a/src/Exporter.php
+++ b/src/Exporter.php
@@ -126,7 +126,7 @@ public function exportContent($entity_type_id, $entity_id) {
   /**
    * {@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 @@ public function exportContentWithReferences($entity_type_id, $entity_id) {
     $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 20ea8bdc..a64642e1 100644
--- a/src/ExporterInterface.php
+++ b/src/ExporterInterface.php
@@ -27,11 +27,14 @@ public function exportContent($entity_type_id, $entity_id);
    *   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/tests/src/Kernel/ExporterIntegrationTest.php b/tests/src/Kernel/ExporterIntegrationTest.php
index 688b7a10..e1b5a658 100644
--- a/tests/src/Kernel/ExporterIntegrationTest.php
+++ b/tests/src/Kernel/ExporterIntegrationTest.php
@@ -157,6 +157,40 @@ public function testExportWithReferences() {
     $this->assertEquals(3, count($exported_by_entity_type['node']));
   }
 
+  /**
+   * Tests exportContentWithReferences() when excluding core users.
+   */
+  public function testExportWithReferencesExcludingCoreUsers() {
+    \Drupal::service('module_installer')->install(['node', 'default_content']);
+    \Drupal::service('router.builder')->rebuild();
+    $this->exporter = \Drupal::service('default_content.exporter');
+
+    // Load the root user.
+    $user = User::load(1);
+
+    $node_type = NodeType::create(['type' => 'test']);
+    $node_type->save();
+    $node = Node::create([
+      'type' => $node_type->id(),
+      'title' => 'test node',
+      'uid' => $user->id(),
+    ]);
+    $node->save();
+    // Reload the node to get the proper casted values from the DB.
+    $node = Node::load($node->id());
+
+    /** @var \Symfony\Component\Serializer\Serializer $serializer */
+    $serializer = \Drupal::service('serializer');
+    \Drupal::service('hal.link_manager')
+      ->setLinkDomain($this->container->getParameter('default_content.link_domain'));
+    $expected_node = $serializer->serialize($node, 'hal_json', ['json_encode_options' => JSON_PRETTY_PRINT]);
+
+    $exported_by_entity_type = $this->exporter->exportContentWithReferences('node', $node->id(), FALSE);
+
+    // Ensure the user is not exported.
+    $this->assertArrayNotHasKey('user', $exported_by_entity_type);
+  }
+
   /**
    * Tests exportModuleContent().
    */
