aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
Commit message (Collapse)AuthorAgeFilesLines
* provisioning_api: Add OpenAPI specjld31032023-07-319-136/+440
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* to return correct code when group not foundAlexander Piskun2023-07-221-0/+3
| | | | Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
* feat(ocp): More specific type for ICapabilities::getCapabilitiesChristoph Wurst2023-07-031-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-122-2/+21
| | | | | 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>
* Use implementations instead of interfaces for accessing private methodsjld31032023-03-301-1/+1
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Merge pull request #36665 from nextcloud/fix/36539Julien Veyssier2023-03-222-4/+3
|\ | | | | Always set displayname and display-name for user data
| * Always set displayname and display-name for user datajld31032023-02-102-4/+3
| | | | | | | | 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>
* Merge pull request #36094 from ↵Joas Schilling2023-01-161-9/+12
|\ | | | | | | | | nextcloud/bugfix/noid/user-info-api-exclude-storage Only expose storage location to admins
| * Only expose storage location to adminsVincent Petry2023-01-131-9/+12
| | | | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Tear down in catch of an ExceptionCôme Chilliet2023-01-121-0/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Catch Exceptions when loading storage data of usersCôme Chilliet2023-01-121-0/+10
|/ | | | | | | | This avoids having the whole userlist crashing because a user external storage fails to load. With this change only the problematic user storage/quota information will be empty. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add a const for the max user password lengthJoas Schilling2023-01-041-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #34940 from nextcloud/feat/add-mastodonCarl Schwan2022-11-222-0/+7
|\ | | | | Add mastodon and reorganize profile info section
| * Fix testsCarl Schwan2022-11-221-0/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * 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>
* | Don't use quota cache through user managementVincent Petry2022-11-211-1/+1
|/ | | | | | | When querying the free space through user management APIs, don't use the cached quota value. The latter is only there to accelerate PROPFINDs. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* 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>
* Add API to change preferencesJoas Schilling2022-05-231-0/+185
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #26725 from ↵John Molakvoæ2021-10-221-3/+6
|\ | | | | | | nextcloud/fix-federated-scope-not-shown-when-public-addressbook-upload-is-disabled
| * Split capabilityDaniel Calviño Sánchez2021-08-181-3/+6
| | | | | | | | | | | | | | The "federated" and "published" scopes are independent one from each other, so the capability that encompassed both needs to be split. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Profile backendChristopher Ng2021-10-191-7/+2
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Add new account propertiesChristopher Ng2021-10-192-58/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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>
* | l10n: Spelling unificationValdnet2021-10-171-1/+1
| | | | | | | | | | Spelling unification in Transifex. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | Add support for Delegation Settings for more appsCarl Schwan2021-10-153-3/+69
| | | | | | | | | | | | | | | | | | * This adds support for the sharing, groupware, theming and user_ldap app * This adds some code who disapeared during a rebase in the initial delegation PR (provisioning_api) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Changed spelling and aligned to other resources.rakekniven2021-09-111-1/+1
| | | | | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.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-092-2/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | enable the user to set a primary (notification) email address (backend)Arthur Schiwon2021-09-092-27/+57
| | | | | | | | | | | | | | - specific getters and setters on IUser and implementation - new notify_email field in provisioning API Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Confirm mails only per POSTArthur Schiwon2021-09-091-2/+24
| | | | | | | | | | | | | | - this is to avoid automatic confirmation by certain softwares that open links Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | implement verification for additional mailsArthur Schiwon2021-09-092-4/+131
|/ | | | | | | | | | | | - 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-292-0/+18
| | | | | | | | | 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-302-3/+7
| | | | 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>
* prov api reports additional emails on getUserArthur Schiwon2021-06-301-0/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Group may be null if backend doesn't support creating groupsDries Mys2021-06-051-0/+3
| | | | Signed-off-by: Dries Mys <dries.mys@my-dreams.be>