Dries Mys
101153c11d
[ProvisioningAPI] Allow specifying group display name during creation
...
Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
2021-06-05 22:22:38 +07:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Joas Schilling
94584ee788
Fix the get editable fields endpoint without a user id
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-27 14:23:04 +07:00
blizzz
0ab5b3e265
Merge pull request #26679 from nextcloud/bugfix/noid/fix-unauthorized-ocs-status-in-provisioning
...
Fix unauthorized OCS status in provisioning
2021-05-13 23:39:20 +07:00
Joas Schilling
b6c6527705
Fix unauthorized OCS status in provisioning
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 08:16:07 +07:00
Arthur Schiwon
8413ed9475
allow to set valid scopes only in AccountProperty
...
the auto-fallback to v2-local is removed as well to react on wrong input
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-12 01:31:15 +07:00
Arthur Schiwon
1e271e9f76
provAPI to use only public API of IAccountManager
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-08 01:20:17 +07:00
Joas Schilling
03b467bd23
Also check implementsAction method
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 15:28:02 +07:00
Joas Schilling
f67a10e8d0
Only return display name as editable when the user backend allows it
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 15:01:30 +07:00
Joas Schilling
2f99ae1120
Also check the default phone region when the number has no country code
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 08:45:32 +07:00
Vincent Petry
2a312fe4e3
Expose avatarScope through provisioning API
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:09 +07:00
Vincent Petry
266a6fb5f8
OCS allow reading and writing account property scopes
...
Extends the provisioning API to allow a user to get and set their own
account property scopes.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:08 +07:00
Vincent Petry
5d14fd4396
Make extra user profile fields always editable
...
The fields for phone number, address, website and twitter are now
editable regardless whether federated sharing and the lookup server
are enabled or not.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:08 +07:00
Joas Schilling
5c3551cf2f
Only clear known users when we had at least one phonebook entry
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-12 09:04:13 +07:00
Joas Schilling
61ed57b757
Rename some parameters and methods to make the API more clear
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 20:30:29 +07:00
Joas Schilling
c7be18c0d6
Add a service to find out if a user knows another user
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 17:19:55 +07:00
Joas Schilling
55a5d26c56
Delete matches when a user changes their phone number
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 15:05:48 +07:00
Joas Schilling
f62d9b50fd
Store when a user knows another user based on phone number
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 15:05:48 +07:00
Roeland Jago Douma
128b682b7c
Fixed error after merge in UsersController
...
This was moved to the LoggerInterface so the recent merge of #25589
broke master.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-05 09:14:01 +07:00
Roeland Jago Douma
4a9f3ef232
Merge pull request #25589 from nextcloud/provisioning-api-invalid-argument
...
forward invalid argument message to frontend when creating a user fails
2021-03-05 08:59:50 +07:00
Roeland Jago Douma
cc744740b7
Remove deprecated \OCP\API
...
Time to remove this forgood now.
Remaining constant moved over
The world is a tiny bit better
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-03 20:54:32 +07:00
Roeland Jago Douma
dc7eb2bd85
LoggerInterface for provisioning API Controllers
...
Sweep swoop swaap swuup
away with the deprecated stuff
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 21:46:51 +07:00
Joas Schilling
89d2eaca0a
Cleanup appinfo usage
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-16 15:51:25 +07:00
Robin Appelman
c6ce1eb557
forward invalid argument message to frontend when creating a user fails
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-11 17:05:51 +07:00
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 18:48:22 +07:00
Joas Schilling
d0750df20c
Unit tests for searching by phone number
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-07 14:19:38 +07:00
Joas Schilling
f648635758
Make the throwing optional, so background tasks don't break
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-07 14:19:38 +07:00
Joas Schilling
9e04e6f99a
Also translate the phone number when coming in via the accounts manager API directly
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-07 14:19:38 +07:00
Joas Schilling
fe9c46e595
Add an endpoint to search for accounts based on phone number
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-07 14:19:37 +07:00
Joas Schilling
da9462b482
Make code strict
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-07 14:19:37 +07:00
Morris Jobke
0f7fb7cb4e
Merge pull request #23189 from nextcloud/enhancement/cs/binary_operator_spaces
...
Format code to a single space around binary operators
2020-10-05 21:31:38 +07:00
Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-05 20:25:24 +07:00
Sujith Haridasan
62923a5e1e
Fix the user email issue while creating a user
...
When the user is created, the provisioning api
was not adding the email address of the user
when provided if the `send email to new user`
is not set.
Signed-off-by: Sujith Haridasan <sujith.h@gmail.com>
2020-10-05 16:47:57 +07:00
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-24 14:54:25 +07:00
Daniel Kesselberg
c19bdb05e8
Generate password on addUser by password_policy app
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-08-09 18:38:19 +07:00
Morris Jobke
7e281a07bb
Use IBootstrap for the app federatedfilesharing
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-07-14 16:34:43 +07:00
Joas Schilling
db8267db26
Use the new method everywhere
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-07-03 10:59:43 +07:00
GretaD
fce716b905
Fix languages empty array
...
Signed-off-by: GretaD <gretadoci@gmail.com>
2020-05-08 10:03:58 +07:00
Joas Schilling
5b5550dbba
Merge pull request #20677 from nextcloud/followup/17718/scaling-user-provisioning
...
Scaling user provisioning for subadmins with many groups
2020-04-30 12:49:57 +07:00
Christoph Wurst
cb057829f7
Update license headers for 19
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-29 11:57:22 +07:00
Mikael Hammarin
6ffde74928
Patch to optimize for large installations (>5000 users >20000 groups) where subadmins have access to many of groups (>250)
...
- UsersController:editUser() calls isUserAccessible() even if the user is admin
This fix reduces API calls to editUser (ex change locale/display name) from >2 minutes (!) to ~3 seconds per call in average.
Signed-off-by: Mikael Hammarin <mikael@try2.se>
2020-04-25 14:37:46 +07:00
Julius Härtl
e7249de145
Make the groupId url encoded
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-11 08:28:15 +07:00
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
...
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10 14:19:56 +07:00
Christoph Wurst
14c996d982
Use elseif instead of else if
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10 10:35:09 +07:00
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 13:54:22 +07:00
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
...
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 11:48:10 +07:00
Christoph Wurst
2fbad1ed72
Fix (array) indent style to always use one tab
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 10:16:08 +07:00
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-31 14:52:54 +07:00
Christoph Wurst
d47daefe38
Revive the "send email to new users" toggle for the user form
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-02-28 14:01:03 +07:00
Robin Appelman
170660840b
query FederatedFileSharing Application instead of creating it
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-12-16 15:33:41 +07:00
Christoph Wurst
5bf3d1bb38
Update license headers
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-05 15:38:45 +07:00
John Molakvoæ (skjnldsv)
f675e61c26
Fix provisioning_api getUsers types
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-11-28 20:28:27 +07:00
Roeland Jago Douma
68748d4f85
Some php-cs fixes
...
* Order the imports
* No leading slash on imports
* Empty line before namespace
* One line per import
* Empty after imports
* Emmpty line at bottom of file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-22 20:52:10 +07:00
John Molakvoæ
62399c76e8
Allow group displaynames in the database backend ( #17221 )
...
Allow group displaynames in the database backend
2019-10-05 18:34:14 +07:00
Christoph Wurst
de6940352a
Move settings to an app
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2019-09-28 09:39:28 +07:00
Joas Schilling
653628c8fb
Allow to set the group display name in the database backend
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-09-27 14:29:56 +07:00
Joas Schilling
f8592e5e79
Only prevent disabling encrytion via the API
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-16 14:24:47 +07:00
Christoph Wurst
d058ef2b6c
Make it possible to wipe all tokens/devices of a user
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-07-09 13:57:04 +07:00
John Molakvoæ (skjnldsv)
33409319be
Do not fail hard on new user mail error
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-07-02 08:42:47 +07:00
Joas Schilling
8c73c1ea5e
Don't allow to disable encryption via the API
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-06-27 14:54:28 +07:00
Roeland Jago Douma
98244b5d6d
Merge pull request #16024 from nextcloud/bugfix/15944/fix-return-code-user-provision
...
Forward OCSException to initiator
2019-06-25 13:32:10 +07:00
Arthur Schiwon
99075825e3
changes the returned key from UserID to id, in accordance with getUserData
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-06-21 16:38:25 +07:00
Arthur Schiwon
29449f85b6
uses "yes" and "no" for config switch over stringified numbers
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-06-21 10:22:12 +07:00
Daniel Kesselberg
4177653e99
Forward OCSException to initiator
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2019-06-20 18:04:52 +07:00
Arthur Schiwon
bbe2f2535a
makes users management page aware of the introduced options
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-06-19 17:04:35 +07:00
Arthur Schiwon
5b754a6353
extends Provisioning API with optional userid and required email
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-06-19 17:02:28 +07:00
Arthur Schiwon
45110f4c5d
fixes misunderstanding of the error message
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-05-16 14:31:10 +07:00
Julius Härtl
add43bc19c
Check if password can be changed for the users backend in OCS api
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-03-05 13:44:25 +07:00
Roeland Jago Douma
95d1cf4817
Merge pull request #13412 from nextcloud/forward-password-policy
...
forward error message from password policy
2019-01-30 11:12:02 +07:00
Roeland Jago Douma
15abcff2a1
Expose subadmin to OCP
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-01-29 20:47:35 +07:00
Arthur Schiwon
4915d64de8
ignore non existing users when retrieving details of group members
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-01-17 11:59:15 +07:00
Joas Schilling
9262507881
Fix doc block
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-10 10:49:09 +07:00
Robin Appelman
3991aa0166
forward error message from password policy
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-01-07 16:28:06 +07:00
Arthur Schiwon
505722cc0d
do not offer to change display name or password, if not possible.
...
Fixes #12319
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2018-11-07 22:37:41 +07:00
zulan
cf266ee004
Get l10n within NewUserMailHelper to ensure it always uses the new user's language.
...
Some related tests had to be changed because they relied on internals, see also from the PHPUnit documentation:
"Exercise caution when using [the at] matcher as it can lead to brittle tests which are too closely tied to specific implementation details."
Signed-off-by: Zulan <git@zulan.net>
2018-10-15 19:01:46 +07:00
Joas Schilling
f0d48554d3
Fix user and group listing with users that have an integer user id
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-09-12 09:47:25 +07:00
Daniel Calviño Sánchez
36326e38a0
Add optional "displayName" parameter to add user endpoint
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-07-31 13:33:55 +07:00
Georg Ehrke
3ffeb4ae06
fix tests / mistakes made during rebase
...
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
2018-06-27 21:52:04 +07:00
Thomas Citharel
abab7eb7f0
handle config.php values
...
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
2018-06-27 13:19:23 +07:00
Thomas Citharel
4a9f8623b5
Fix review & tests
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-27 13:19:21 +07:00
Thomas Citharel
d8921ccd85
Allow user to choose locale
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-27 13:15:19 +07:00
Robin Appelman
290b5b5461
show error message when group exists
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-06-26 15:00:54 +07:00
John Molakvoæ (skjnldsv)
a53dbb8c0b
New user support, provisionning api and design fixes
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-19 23:20:33 +07:00
John Molakvoæ (skjnldsv)
cc2d58a850
Keep userids as keys on group search
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-15 22:54:28 +07:00
John Molakvoæ (skjnldsv)
d666723cb0
Return groups IDs and not Names
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-15 16:42:39 +07:00
John Molakvoæ (skjnldsv)
da583f05fc
Allow 0 quota by provisioning api
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-07 11:30:37 +07:00
John Molakvoæ (skjnldsv)
ddd1c8bc86
Disabled fix since new users list
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-05-24 17:52:15 +07:00
John Molakvoæ (skjnldsv)
10c135ca34
Added disabled count per groups
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-05-24 17:52:15 +07:00
Arthur Schiwon
38a90130ce
move log constants to ILogger
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2018-04-26 10:45:52 +07:00
Roeland Jago Douma
63dfbb2127
Merge pull request #9162 from nextcloud/allow-lang-ocs-api
...
Add language support for user creation
2018-04-17 11:01:46 +07:00
John Molakvoæ (skjnldsv)
5bd02a63a8
Fixed tests
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-04-16 15:18:33 +07:00
John Molakvoæ (skjnldsv)
6028d60038
Add language support for user creation
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-04-16 15:18:33 +07:00
John Molakvoæ (skjnldsv)
3e5ea9b0a9
Return proper boolean user enabled state api
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-04-16 15:17:02 +07:00
Morris Jobke
10b37a074c
Revert "Add language support for user creation in api"
2018-04-12 11:00:54 +07:00
Morris Jobke
e6c146121e
Merge pull request #9144 from nextcloud/allow-lang-ocs-api
...
Add language support for user creation in api
2018-04-11 16:21:32 +07:00
John Molakvoæ (skjnldsv)
89da1af889
Add language support for user creation
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-04-11 10:59:56 +07:00
Roeland Jago Douma
d363e2f0e3
The integrationtests expect a string
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-04-10 23:29:09 +07:00
Morris Jobke
acbcc607ea
Merge pull request #9111 from nextcloud/use-proper-bool-user-disabled-state
...
Return proper boolean and do not save enabled state in db
2018-04-09 23:39:02 +07:00
John Molakvoæ (skjnldsv)
eae55761de
Properly return boolean on enable state
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-04-09 11:26:26 +07:00
John Molakvoæ (skjnldsv)
18ec4ddd2b
Allow user creation with subadmins and quota
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-04-06 15:30:41 +07:00