diff --git a/src/applications/people/query/PhabricatorPeopleSearchEngine.php b/src/applications/people/query/PhabricatorPeopleSearchEngine.php --- a/src/applications/people/query/PhabricatorPeopleSearchEngine.php +++ b/src/applications/people/query/PhabricatorPeopleSearchEngine.php @@ -203,6 +203,12 @@ 'all' => pht('All'), ); + // Showing all the Administrators is a very frequent need + // from lot of components (example: Config etc.) + // that deserves this clean reliable URL: + // /people/query/admin/ + $names['admin'] = pht('Administrators'); + $viewer = $this->requireViewer(); if ($viewer->getIsAdmin()) { $names['approval'] = pht('Approval Queue'); @@ -221,6 +227,9 @@ case 'active': return $query ->setParameter('isDisabled', false); + case 'admin': + return $query + ->setParameter('isAdmin', true); case 'approval': return $query ->setParameter('needsApproval', true)