diff options
author | Joas Schilling <coding@schilljs.com> | 2021-03-17 09:02:37 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-03-17 09:51:31 +0100 |
commit | 9a189bc710a971bea5edb4807914a3978356e66b (patch) | |
tree | c9451bc47f58b1eb61459b1d7a7b6006ec65d095 /lib/public/IUserManager.php | |
parent | f82edda9c190462132f5042a177e7fa413291330 (diff) | |
download | nextcloud-server-9a189bc710a971bea5edb4807914a3978356e66b.tar.gz nextcloud-server-9a189bc710a971bea5edb4807914a3978356e66b.zip |
Improve search results when only phonebook-matches can we autocompleted
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/IUserManager.php')
-rw-r--r-- | lib/public/IUserManager.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php index e8a7fc7827d..6963bb5ddbc 100644 --- a/lib/public/IUserManager.php +++ b/lib/public/IUserManager.php @@ -127,6 +127,18 @@ interface IUserManager { public function searchDisplayName($pattern, $limit = null, $offset = null); /** + * Search known users (from phonebook sync) by displayName + * + * @param string $searcher + * @param string $pattern + * @param int|null $limit + * @param int|null $offset + * @return IUser[] + * @since 21.0.1 + */ + public function searchKnownUsersByDisplayName(string $searcher, string $pattern, ?int $limit = null, ?int $offset = null): array; + + /** * @param string $uid * @param string $password * @throws \InvalidArgumentException |