diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-04-27 16:41:08 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-27 16:41:08 -0300 |
commit | f000e22a97b9bae756cc5977badeffbc7a6852e9 (patch) | |
tree | 570c1d983747c92d4d5c396a92bfce9a311bd5bb /lib/public | |
parent | 2be212d179302d25e53b41a3d36b651fbc12014e (diff) | |
parent | 9212089151e827b648033a4812a5dcac5058b715 (diff) | |
download | nextcloud-server-f000e22a97b9bae756cc5977badeffbc7a6852e9.tar.gz nextcloud-server-f000e22a97b9bae756cc5977badeffbc7a6852e9.zip |
Merge pull request #4522 from nextcloud/downstream-27596
Allow to create a user for a specific backend
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IUserManager.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php index 1f8c23dbedf..1ec392dfd82 100644 --- a/lib/public/IUserManager.php +++ b/lib/public/IUserManager.php @@ -123,13 +123,23 @@ interface IUserManager { /** * @param string $uid * @param string $password - * @throws \Exception + * @throws \InvalidArgumentException * @return bool|\OCP\IUser the created user of false * @since 8.0.0 */ public function createUser($uid, $password); /** + * @param string $uid + * @param string $password + * @param UserInterface $backend + * @return IUser|null + * @throws \InvalidArgumentException + * @since 12.0.0 + */ + public function createUserFromBackend($uid, $password, UserInterface $backend); + + /** * returns how many users per backend exist (if supported by backend) * * @return array an array of backend class as key and count number as value |