{"record":{"id":"1916507a0fec678b","repo":"phacility/phabricator","slug":"err-bad-phid-191650","errorCode":"ERR-BAD-PHID","errorMessage":"Non existent user PHID.","messagePattern":"Non existent user PHID\\.","errorType":"error_code","errorClass":"ConduitException","httpStatus":null,"severity":"error","filePath":"src/applications/people/conduit/UserDisableConduitAPIMethod.php","lineNumber":51,"sourceCode":"      'ERR-PERMISSIONS' => pht('Only admins can call this method.'),\n      'ERR-BAD-PHID' => pht('Non existent user PHID.'),\n    );\n  }\n\n  protected function execute(ConduitAPIRequest $request) {\n    $actor = $request->getUser();\n    if (!$actor->getIsAdmin()) {\n      throw new ConduitException('ERR-PERMISSIONS');\n    }\n\n    $phids = $request->getValue('phids');\n\n    $users = id(new PhabricatorUser())->loadAllWhere(\n      'phid IN (%Ls)',\n      $phids);\n\n    if (count($phids) != count($users)) {\n      throw new ConduitException('ERR-BAD-PHID');\n    }\n\n    foreach ($phids as $phid) {\n      $params = array(\n        'transactions' => array(\n          array(\n            'type' => 'disabled',\n            'value' => true,\n          ),\n        ),\n        'objectIdentifier' => $phid,\n      );\n\n      id(new ConduitCall('user.edit', $params))\n        ->setUser($actor)\n        ->execute();\n    }\n","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/people/conduit/UserDisableConduitAPIMethod.php#L33-L69","documentation":"Error \"Non existent user PHID.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/people/conduit/UserDisableConduitAPIMethod.php:51 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"}