From 5dc6406b7075a6f1db3ada7a9d0f5ddc93f58b18 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 9 Dec 2014 18:36:40 +0100 Subject: Add filter for 'backend' to user REST route This adds a "backend" type filter to the index REST route which is a pre-requisite for https://github.com/owncloud/core/issues/12620 For example when calling `index.php/settings/users/users?offset=0&limit=10&gid=&pattern=&backend=OC_User_Database` only users within the backend `OC_User_Database` would be shown. (requires sending a CSRF token as well) Depends upon https://github.com/owncloud/core/pull/12711 --- lib/public/iusermanager.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/public/iusermanager.php') diff --git a/lib/public/iusermanager.php b/lib/public/iusermanager.php index fc0729b860b..86e495772da 100644 --- a/lib/public/iusermanager.php +++ b/lib/public/iusermanager.php @@ -31,6 +31,12 @@ interface IUserManager { */ public function registerBackend($backend); + /** + * Get the active backends + * @return \OC_User_Interface[] + */ + public function getBackends(); + /** * remove a user backend * -- cgit v1.2.3