Joas Schilling
3abe86dade
Fix provisioning API call
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 vuotta sitten
Morris Jobke
50f3efad6f
OCS API endpoint to resend welcome message
* send a POST request to ocs/v1.php/cloud/users/USERNAME/resendWelcomeMessage to trigger
the welcome message to be send
* fixes #3367
example curl statement:
curl -i https://example.org/ocs/v1.php/cloud/users/USERNAME/welcome -H "OCS-APIRequest: true" -u admin:password -X POST
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 vuotta sitten
Bjoern Schiessle
2ca8339d01
add groups to user info output
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 vuotta sitten
Bjoern Schiessle
3e6c40eeb4
make sure that 'getCurrentUser' gets an array in order to manipulate the data to match the old API
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 vuotta sitten
Bjoern Schiessle
5086335643
unify endpoints form core and the the provisioning api
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 vuotta sitten
Bjoern Schiessle
fee42647fb
add data from the users profile to the provisioning api
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 vuotta sitten
Joas Schilling
5d1f7e5a7b
Allow subadmins to add people to groups via provisioning api
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 vuotta sitten
Joas Schilling
d80a4453af
Make sure subadmins can not delete users from their last subadmin group
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 vuotta sitten
Joas Schilling
ae77067a07
No need to check the subadmin again
The user needs to be a subadmin of the group,
otherwise they are not allowed to remove anyone from the group
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 vuotta sitten
Joas Schilling
bea85adc08
Require sudo mode on the provisioning API
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 vuotta sitten
Lukas Reschke
32cf661215
Use new appstore API
This change introduces the new appstore API in Nextcloud.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 vuotta sitten
Joas Schilling
0d878f94e6
Add unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 vuotta sitten
Joas Schilling
0b1fb180a5
Make AppConfig part of the public API
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 vuotta sitten
Joas Schilling
04c5259df0
Allow to retrieve the quota itself via the provisioning api
8 vuotta sitten
Roeland Jago Douma
092b767ef9
Move Apps to OCSController
8 vuotta sitten
Roeland Jago Douma
8f4adebab7
Move Users to OCSController
8 vuotta sitten
Roeland Jago Douma
432e7c93c6
Move Groups over to OCSController
* Take advantage of the AppFramework
* Fix tests
8 vuotta sitten
Roeland Jago Douma
0fdeefe47c
Add ProvisioningAPI middleware
The provisioning API has 3 access levels:
* Admin
* SubAdmin
* User
This middleware adds a check for the SubAdmin part.
8 vuotta sitten
Joas Schilling
813f0a0f40
Fix apps/
8 vuotta sitten
Roeland Jago Douma
f9e0e3d972
Fix Warnings Provisioning API
* OC_OCS_Result is deprecated
* getMock is deprecated in phpunit 5.4
8 vuotta sitten
Lukas Reschke
aba539703c
Update license headers
8 vuotta sitten
Joas Schilling
2a05035339
Move Provisioning api to PSR-4 (#24510)
* Move app to PSR-4
* Fix setUp method
* Fix the tests
8 vuotta sitten
Thomas Müller
8486926a14
Add provisioning api to enable and disable users
8 vuotta sitten
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
8 vuotta sitten
Arthur Schiwon
3a796d1e15
Consolidate getQuota and setQuota methods in User instance
8 vuotta sitten
Thomas Müller
aeb89947a2
Introduce IUser::setEMailAddress and add hook mechanism
8 vuotta sitten
Thomas Müller
682821c71e
Happy new year!
8 vuotta sitten
Tom Needham
3327857c1a
Update log message when error occurs during addGroup
8 vuotta sitten
Tom Needham
673a8a1e4a
Remove unnecessary group name validation
8 vuotta sitten
Lukas Reschke
88c7face07
Inject OCSClient
Fixes https://github.com/owncloud/core/issues/21451
8 vuotta sitten
Thomas Müller
eebe2b9c23
User IUser::getEMailAddress() all over the place
8 vuotta sitten
Roeland Jago Douma
6dcaac7e2c
Return empty list if group does not have subadmins
Instead of throwing an error just return an empty list. Since that is
actually what it is.
Fixes #19789
8 vuotta sitten
Roeland Jago Douma
61425b7621
Moved grouptest over to pure unit tests
8 vuotta sitten
Roeland Jago Douma
fc1f0233ff
Added unit test for new functionality
8 vuotta sitten
michag86
3b88c469c7
enable api addUser for subadmins
* Fix existing unit tests
8 vuotta sitten
Joas Schilling
960c9f386d
Revert OCS error code change from #20135
8 vuotta sitten
Lukas Reschke
c6f6a8758b
Drop OC_SubAdmin and replace usages
8 vuotta sitten
Lukas Reschke
8f09d5b67c
Update license headers
8 vuotta sitten
Roeland Jago Douma
002e9c76cd
Combine OCS API getUser method code into provisioning_api app
Fixes #13002
Move the cloud/users/{userid} code in total to the provisioning API.
8 vuotta sitten
Morris Jobke
b945d71384
update licence headers via script
8 vuotta sitten
Lukas Reschke
a7f132a964
Add proper PHPDoc
Makes my IDE happier when going through that file.
8 vuotta sitten
michag86
e958638221
enable api getUsers for subadmins
Now subadmins can get a list of users they are subadmins of.
9 vuotta sitten
Roeland Jago Douma
b41bccd385
Check for userSession->getUser() === null
9 vuotta sitten
Roeland Jago Douma
2148120883
[provisioning api] Test for correct displayname
9 vuotta sitten
Roeland Jago Douma
ed1f034e6b
Fix groups
9 vuotta sitten
Roeland Jago Douma
98a7e42ebb
[provisioning api] Move away from OC\Util to OCP\Util
9 vuotta sitten
Roeland Jago Douma
a4822f9f9a
[provisioning_api] Move part of apps to OCP
9 vuotta sitten
Roeland Jago Douma
97d79202ac
[provisioning_api] OC_User to IUserSession
9 vuotta sitten
Roeland Jago Douma
9f59add9ed
[provisioning_api] subadmin check for users
9 vuotta sitten
Roeland Jago Douma
b745e75737
[provisioning_api] Moved groups away from static stuff
9 vuotta sitten