aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/Controller/UsersController.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(provisioning_api): Show warning but do not fail when listing accounts in ↵Ferdinand Thiessen2024-04-231-3/+18
| | | | | | | | case of users removed from backend but still in database Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(settings): Fix always empty disabled users list for subadminsChristopher Ng2024-03-111-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix: #41005 Resend welcome emailEzhil Shanmugham2024-02-231-1/+8
| | | | Signed-off-by: Ezhil Shanmugham <ezhil930@gmail.com>
* fix(i18n): id -> IDrakekniven2024-02-041-1/+1
| | | | | Reported at Transifex Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* fix(provisioning_api): Translate exceptions shown in the frontend + replace ↵Ferdinand Thiessen2024-02-011-60/+40
| | | | | | some deprecations Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: Rename OpenAPI type aliases to their namespacesjld31032023-11-021-6/+6
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Check limit and offset parameters sent to controllerCôme Chilliet2023-10-101-0/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix api description for Users#getDisabledUsersCôme Chilliet2023-10-091-0/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove psalm @var annotations which should not be neededCôme Chilliet2023-10-091-2/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add endpoint for getting disabled user listCôme Chilliet2023-10-091-1/+65
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add single status code descriptions for OpenAPIjld31032023-09-271-0/+38
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* fix(phonenumber): Use the newly introduced API to limit 3rdparty lib usageJoas Schilling2023-09-251-22/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* provisioning_api: Add OpenAPI specjld31032023-07-311-68/+115
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* fix(CI): Satisfy psalm by removing a now obsolete type checkJoas Schilling2023-05-311-3/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(users): Store and load a user's managerChristoph Wurst2023-05-121-2/+18
| | | | | Co-Authored-By: hamza221 <hamzamahjoubi221@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(provisioning_api): Don't allow to configure the same additional email ↵Joas Schilling2023-04-261-4/+4
| | | | | | multiple times Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve handling of profile fieldsChristopher Ng2023-03-301-0/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #36665 from nextcloud/fix/36539Julien Veyssier2023-03-221-4/+1
|\ | | | | Always set displayname and display-name for user data
| * Always set displayname and display-name for user datajld31032023-02-101-4/+1
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | fix: Recalculate storage statistics on updating the quotaJulius Härtl2023-03-061-3/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add a const for the max user password lengthJoas Schilling2023-01-041-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename mastodon to fediverseCarl Schwan2022-11-221-6/+6
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add mastodon personal info fieldCarl Schwan2022-11-211-0/+6
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix password length limitationJoas Schilling2022-10-101-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix translation of user exists error server-sideChristopher Ng2022-09-151-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-2/+2
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix creation of new user and display the correct error messageChristopher Ng2022-08-221-3/+12
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Do not save invalid display name to the databaseChristopher Ng2022-06-281-1/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix exception handling when profile data is too longJoas Schilling2022-06-091-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Profile backendChristopher Ng2021-10-191-7/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add new account propertiesChristopher Ng2021-10-191-58/+133
| | | | | | | | | | | | | | - New properties - Organisation - Role - Headline - Biography - Profile Enabled property - Fix errors with building default account properties - Fix L10N factory method `getLanguage` not public error - Update tests Signed-off-by: Christopher Ng <chrng8@gmail.com>
* also allow admins to set the primary emailArthur Schiwon2021-09-091-0/+1
| | | | | | - there will be times when it is necessary to reset this value for sure Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* use specific email getter where necessaryArthur Schiwon2021-09-091-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* enable the user to set a primary (notification) email address (backend)Arthur Schiwon2021-09-091-22/+44
| | | | | | | - specific getters and setters on IUser and implementation - new notify_email field in provisioning API Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* implement verification for additional mailsArthur Schiwon2021-09-091-4/+10
| | | | | | | | | | | | - mails added by (sub)admins are automatically verified - provisioning_api controller as verification endpoint - IAccountProperty gets a locallyVerified property - IPropertyCollection gets a method to fetch an IAccountProperty by value - an remove equivalent was already present - AccountManager always initiates mail verification on update if necessary - add core success template for arbitrary title and message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refs #21045 add app config to disable unlimited quota and to set max quotaJulien Veyssier2021-07-291-0/+11
| | | | | | | | | avoid unlimited quota as default_quota fallback value if unlimited quota is not allowed avoid getting/setting/displaying unlimited default quota if not allowed implement tests for unlimited quota restrictions Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Migrate HintException to OCPGary Kim2021-06-301-3/+3
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* cleanupArthur Schiwon2021-06-301-6/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix small issues in UsersController handlingArthur Schiwon2021-06-301-2/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust access permissions of new controller methodArthur Schiwon2021-06-301-1/+5
| | | | | | - fixes wrong veriable usage also Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* create a property on editUser when it was not set beforeArthur Schiwon2021-06-301-10/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api to be able to edit multivalue propertiesArthur Schiwon2021-06-301-0/+98
| | | | | | | - adding as usual - deleting and scope setting via additional endpoint Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api reports multiple mail as editable fieldArthur Schiwon2021-06-301-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix the get editable fields endpoint without a user idJoas Schilling2021-05-271-1/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #26679 from ↵blizzz2021-05-131-12/+20
|\ | | | | | | | | nextcloud/bugfix/noid/fix-unauthorized-ocs-status-in-provisioning Fix unauthorized OCS status in provisioning
| * Fix unauthorized OCS status in provisioningJoas Schilling2021-05-121-12/+20
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | allow to set valid scopes only in AccountPropertyArthur Schiwon2021-05-121-1/+1
| | | | | | | | | | | | the auto-fallback to v2-local is removed as well to react on wrong input Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | provAPI to use only public API of IAccountManagerArthur Schiwon2021-05-081-11/+12
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>