{"record":{"id":"770dfebf907b26ea","repo":"phacility/phabricator","slug":"no-user-exists-with-username-s","errorCode":null,"errorMessage":"No user exists with username \"%s\".","messagePattern":"No user exists with username \"(.+?)\"\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php","lineNumber":81,"sourceCode":"          'Specify either specific users with %s, or all users with '.\n          '%s, but not both.',\n          '--user',\n          '--all-users'));\n    } else if (!$usernames && !$all_users) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Use \"--user <username>\" to specify which user to strip factors '.\n          'from, or \"--all-users\" to strip factors from all users.'));\n    } else if ($usernames) {\n      $users = id(new PhabricatorPeopleQuery())\n        ->setViewer($this->getViewer())\n        ->withUsernames($usernames)\n        ->execute();\n\n      $users_by_username = mpull($users, null, 'getUsername');\n      foreach ($usernames as $username) {\n        if (empty($users_by_username[$username])) {\n          throw new PhutilArgumentUsageException(\n            pht(\n              'No user exists with username \"%s\".',\n              $username));\n        }\n      }\n    } else {\n      $users = null;\n    }\n\n    $types = $args->getArg('type');\n    $provider_phids = $args->getArg('provider');\n    $all_types = $args->getArg('all-types');\n    if ($types && $all_types) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify either specific factors with \"--type\", or all factors with '.\n          '\"--all-types\", but not both.'));\n    } else if ($provider_phids && $all_types) {","sourceCodeStart":63,"sourceCodeEnd":99,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php#L63-L99","documentation":"Error \"No user exists with username \"%s\".\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php:81 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}