phacility/phabricator · error · ConduitException

ERR-BAD-PHID

ERR-BAD-PHID

Error message

Non existent user PHID.

What it means

Error "Non existent user PHID." thrown in phacility/phabricator.

Source

Thrown at src/applications/people/conduit/UserEnableConduitAPIMethod.php:51

      'ERR-PERMISSIONS' => pht('Only admins can call this method.'),
      'ERR-BAD-PHID' => pht('Non existent user PHID.'),
    );
  }

  protected function execute(ConduitAPIRequest $request) {
    $actor = $request->getUser();
    if (!$actor->getIsAdmin()) {
      throw new ConduitException('ERR-PERMISSIONS');
    }

    $phids = $request->getValue('phids');

    $users = id(new PhabricatorUser())->loadAllWhere(
      'phid IN (%Ls)',
      $phids);

    if (count($phids) != count($users)) {
      throw new ConduitException('ERR-BAD-PHID');
    }

    foreach ($phids as $phid) {
      $params = array(
        'transactions' => array(
          array(
            'type' => 'disabled',
            'value' => false,
          ),
        ),
        'objectIdentifier' => $phid,
      );

      id(new ConduitCall('user.edit', $params))
        ->setUser($actor)
        ->execute();
    }

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/people/conduit/UserEnableConduitAPIMethod.php:51 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/e817ed38a3248ed4. Report an issue: GitHub.