diff --git a/src/Plugin/monitoring/SensorPlugin/UserIntegritySensorPlugin.php b/src/Plugin/monitoring/SensorPlugin/UserIntegritySensorPlugin.php
index 08ecbca..52bf212 100644
--- a/src/Plugin/monitoring/SensorPlugin/UserIntegritySensorPlugin.php
+++ b/src/Plugin/monitoring/SensorPlugin/UserIntegritySensorPlugin.php
@@ -293,7 +293,10 @@ class UserIntegritySensorPlugin extends SensorPluginBase implements ExtendedInfo
 
     $old_user_ids = array_keys($expected_users);
     foreach ($old_user_ids as $id) {
-      $changes = $this->getUserChanges($current_users[$id], $expected_users[$id]);
+      $changes = [];
+      if (isset($current_users[$id])) {
+        $changes = $this->getUserChanges($current_users[$id], $expected_users[$id]);
+      }
       foreach ($changes as $key => $value) {
         $time_stamp = $current_users[$id]['changed'];
         $last_accessed = $current_users[$id]['last_accessed'];
@@ -365,6 +368,41 @@ class UserIntegritySensorPlugin extends SensorPluginBase implements ExtendedInfo
       ) + $rows;
     }
 
+    // Verbose output for deleted users.
+    $rows = [];
+    $deleted_users = db_select('watchdog')
+      ->fields('watchdog')
+      ->condition('type', 'user')
+      ->condition('message', "Deleted %", 'LIKE')
+      ->orderBy('wid', 'DESC')
+      ->execute()
+      ->fetchAll();
+
+    foreach ($deleted_users as $user) {
+      $variables = unserialize($user->variables);
+      $rows[] = [
+        'wid' => ['#markup' => $user->wid],
+        'user' => ['#markup' => $variables['%name']],
+        'deleted' => ['#markup' => date("Y-m-d H:i:s", $user->timestamp)],
+      ];
+    }
+
+    if (count($rows) > 0) {
+      $output['message_deleted'] = array(
+        '#type' => 'item',
+        '#title' => t('All deleted users.'),
+      );
+      $header = [
+        'wid' => t('WID'),
+        'user' => t('User'),
+        'deleted' => t('Deleted date'),
+      ];
+      $output['deleted_users'] = array(
+        '#type' => 'table',
+        '#header' => $header,
+      ) + $rows;
+    }
+
     // Show roles list with the permissions that are restricted for each.
     $roles_list = [];
     foreach (Role::loadMultiple($role_ids) as $role) {
diff --git a/src/Tests/MonitoringCoreWebTest.php b/src/Tests/MonitoringCoreWebTest.php
index c806e73..853b761 100644
--- a/src/Tests/MonitoringCoreWebTest.php
+++ b/src/Tests/MonitoringCoreWebTest.php
@@ -152,18 +152,28 @@ class MonitoringCoreWebTest extends MonitoringTestBase {
    * @see UserIntegritySensorPlugin
    */
   protected function doTestUserIntegritySensorPlugin() {
+    $test_user_first = $this->drupalCreateUser(array('administer monitoring'), 'test_user');
+    $this->runSensor('user_integrity');
+
+    // Delete the user and run the sensor.
+    $test_user_first->delete();
+    $result = $this->runSensor('user_integrity');
+    $this->assertTrue($result->isOk());
+
+    // Create the user again.
     $test_user_first = $this->drupalCreateUser(array('administer monitoring'), 'test_user_1');
     $this->drupalLogin($test_user_first);
+
     // Check sensor message after first privilege user creation.
     $result = $this->runSensor('user_integrity');
-    $this->assertEqual($result->getMessage(), '1 privileged user(s)');
+    $this->assertEqual($result->getMessage(), '1 privileged user(s), 1 new user(s)');
 
     // Create second privileged user.
     $test_user_second = $this->drupalCreateUser(array(), 'test_user_2', TRUE);
     $this->drupalLogin($test_user_second);
     // Check sensor message after new privilege user creation.
     $result = $this->runSensor('user_integrity');
-    $this->assertEqual($result->getMessage(), '2 privileged user(s), 1 new user(s)');
+    $this->assertEqual($result->getMessage(), '2 privileged user(s), 2 new user(s)');
 
     // Reset the user data, button is tested in UI tests.
     \Drupal::keyValue('monitoring.users')->deleteAll();
