{"record":{"id":"21f18652893b6f4f","repo":"phacility/phabricator","slug":"there-are-no-matching-factors-to-strip","errorCode":null,"errorMessage":"There are no matching factors to strip.","messagePattern":"There are no matching factors to strip\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php","lineNumber":170,"sourceCode":"      if (!$providers) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'There are no configured multi-factor providers.'));\n      }\n    }\n\n    $factor_query = id(new PhabricatorAuthFactorConfigQuery())\n      ->setViewer($viewer)\n      ->withFactorProviderPHIDs(array_keys($providers));\n\n    if ($users) {\n      $factor_query->withUserPHIDs(mpull($users, 'getPHID'));\n    }\n\n    $factors = $factor_query->execute();\n\n    if (!$factors) {\n      throw new PhutilArgumentUsageException(\n        pht('There are no matching factors to strip.'));\n    }\n\n    $handles = id(new PhabricatorHandleQuery())\n      ->setViewer($this->getViewer())\n      ->withPHIDs(mpull($factors, 'getUserPHID'))\n      ->execute();\n\n    $console = PhutilConsole::getConsole();\n\n    $console->writeOut(\"%s\\n\\n\", pht('These auth factors will be stripped:'));\n\n    foreach ($factors as $factor) {\n      $provider = $factor->getFactorProvider();\n\n      echo tsprintf(\n        \"    %s\\t%s\\t%s\\n\",\n        $handles[$factor->getUserPHID()]->getName(),","sourceCodeStart":152,"sourceCodeEnd":188,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php#L152-L188","documentation":"Raised in `bin/auth strip` after the factor query runs: no auth factor configs match the combination of selected users, providers, and factor types. There is nothing to strip, so execute() stops with a usage exception.","triggerScenarios":"Thrown at src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php:170 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the users actually have factors configured (check their MFA settings)","Widen the provider/type/user filters if they excluded everything"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}