{"record":{"id":"110cd677defa907e","repo":"phacility/phabricator","slug":"target-s-is-not-a-valid-target-to-revoke-creden","errorCode":null,"errorMessage":"Target \"%s\" is not a valid target to revoke credentials from. Usually, revoke from \"@username\".","messagePattern":"Target \"(.+?)\" is not a valid target to revoke credentials from\\. Usually, revoke from \"@username\"\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php","lineNumber":140,"sourceCode":"    if (!strlen($from) && !$is_everywhere) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify the target to revoke credentials from with \"--from\" or '.\n          'specify \"--everywhere\".'));\n    } else if (strlen($from) && $is_everywhere) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify the target to revoke credentials from with \"--from\" or '.\n          'specify \"--everywhere\", but not both.'));\n    } else if ($is_everywhere) {\n      // Just carry the flag through.\n    } else {\n      $target = id(new PhabricatorObjectQuery())\n        ->setViewer($viewer)\n        ->withNames(array($from))\n        ->executeOne();\n      if (!$target) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'Target \"%s\" is not a valid target to revoke credentials from. '.\n            'Usually, revoke from \"@username\".',\n            $from));\n      }\n    }\n\n    if ($is_everywhere && !$is_force) {\n      echo id(new PhutilConsoleBlock())\n        ->addParagraph(\n          pht(\n          'You are destroying an entire class of credentials. This may be '.\n          'very disruptive to users. You should normally do this only if '.\n          'you suspect there has been a widespread compromise which may '.\n          'have impacted everyone.'))\n        ->drawConsoleString();\n\n      $prompt = pht('Really destroy credentials everywhere?');","sourceCodeStart":122,"sourceCodeEnd":158,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php#L122-L158","documentation":"Error \"Target \"%s\" is not a valid target to revoke credentials from. Usually, revoke from \"@username\".\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php:140 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"}