diff --git a/lib/Gitlab/Api/Users.php b/lib/Gitlab/Api/Users.php index 9ed022d99..a3e31ff5c 100644 --- a/lib/Gitlab/Api/Users.php +++ b/lib/Gitlab/Api/Users.php @@ -17,6 +17,17 @@ public function all($active = null, $page = 1, $per_page = self::PER_PAGE) )); } + /** + * @param string $username + * @return mixed + */ + public function lookup($username) + { + return $this->get('users', array( + 'username' => $username + )); + } + /** * @param string $query * @param null|true $active