aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "refactor: add migration for email setting"revert/email-setting-migrationprovokateurin2025-04-071-2/+3
| | | | | | This reverts commit e7859f0dacbda051c2decb2e0d62345435ac2fd9. Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: add migration for email settingFerdinand Thiessen2025-04-021-3/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(settings): Handle email change restriction separately from display name ↵provokateurin2025-04-021-17/+21
| | | | | | | | | change restriction Co-authored-by: provokateurin <kate@provokateurin.de> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(provisioning_api): Add endpoint for fetching user subadmin groups with ↵Christopher Ng2025-03-281-0/+44
| | | | | | details Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(provisioning_api): Add endpoint for fetching user groups with detailsChristopher Ng2025-03-281-0/+79
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(provisioning_api): Pass on translated hint if password change failsfix/provisioning_api/password-change-hint-translationprovokateurin2025-03-241-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Fix psalm taint false-positives by small refactoringsfix/fix-psalm-taint-errors-2Côme Chilliet2025-02-171-1/+26
| | | | | | | Mostly make it clear that we trust admin input or that we correctly escape strings. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-132-2/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(provisioning_api): Correct limit for `editUser`Ferdinand Thiessen2025-02-061-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #49476 from nextcloud/ocs-user-info-quota-optimizeRobin Appelman2025-01-163-28/+63
|\ | | | | perf: use more optimized way to get user storage info in ocs user info
| * perf: use more optimized way to get user storage info in ocs user info when ↵Robin Appelman2025-01-063-28/+63
| | | | | | | | | | | | possible Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: Return timestamps in unix format rather than millisecondsCôme Chilliet2025-01-072-2/+4
| | | | | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* | feat: Add first login timestamp of each user to oc_preferences and user:info ↵Côme Chilliet2025-01-072-0/+2
|/ | | | | | output Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(provisioning_api): Rename AUserData to AUserDataOCSController to ↵provokateurin2025-01-063-5/+5
| | | | | | allow openapi-extractor to detect it as OCS Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-057-64/+58
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #48766 from ↵John Molakvoæ2024-10-291-4/+4
|\ | | | | | | nextcloud/fix/fix-disabled-user-list-for-subadmins
| * fix(provisioning_api): Fix getting disabled users for group adminsfix/fix-disabled-user-list-for-subadminsCôme Chilliet2024-10-171-4/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-217-68/+23
|/ | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-2/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Clean upChristopher Ng2024-10-081-33/+11
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: Return correct list of managers for a userChristopher Ng2024-10-083-3/+43
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: provision api's status codesfix/provisionApi-status-codesHamza Mahjoubi2024-09-301-20/+20
| | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-194-4/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat: add profile pronounsJohn Molakvoæ (skjnldsv)2024-09-173-1/+10
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* chore: Migrate cleanAppId and getAppPath calls to IAppManager from OC_AppCôme Chilliet2024-09-131-3/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-254-7/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(provisioning): Support setting new app configs as wellJoas Schilling2024-08-221-2/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(ProvisioningAPI): set typed config values by via APIArthur Schiwon2024-08-201-1/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: Reset notification email automatically when deleting additonal emailChristopher Ng2024-08-021-0/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor(provisioning_api): Replace security annotations with respective ↵provokateurin2024-07-276-79/+68
| | | | | | attributes Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #46418 from nextcloud/artonge/feat/user_admin_delegationLouis2024-07-243-25/+71
|\ | | | | feat(users): Add users and group management to admin delegation
| * feat(users): Add support for admin delegation for users and groups managementLouis Chemineau2024-07-223-25/+71
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | feat: let users configure their first day of weekRichard Steinmetz2024-07-222-0/+14
|/ | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix: getLastLoggedInUsers moved from AllConfig/IConfig to IUserManager/Manageryemkareems2024-07-081-1/+1
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: limit and fixLimit removed. negative limit handled in controller. ↵yemkareems2024-07-081-10/+4
| | | | | | removed getUsersSortedByLastLogin from Manager and instead used the config in controller Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: removed default limit of 25. if null is given all users are fetched or ↵yemkareems2024-07-081-1/+1
| | | | | | if limit is given limit number of users are fetched Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: removed references to old disabled users code. refactored query as per ↵yemkareems2024-07-081-27/+4
| | | | | | getDisplayNames function. limit and offset added to query. default limit set to 25. Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: removed NoCSRFRequired used for testing locallyyemkareems2024-07-081-1/+0
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: removed the params related to sortMode and order since it sorts by ↵yemkareems2024-07-081-6/+3
| | | | | | lastLogin Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: removed csrf check for the recent end point and ran cs fixyemkareems2024-07-081-5/+4
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: rebased the branch with master and resolved conflictsyemkareems2024-07-081-7/+95
| | | | | | fix: added a new endpoint users/recent and getting users based on last login info in the same. Reverted old code that was breaking LDAP Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: change orderBy and sort to sortMode and sortOrder. default it to uid ↵yemkareems2024-07-081-7/+7
| | | | | | asc. enable email search by changing query Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: sort the user getDisplayNames based on lastLogin. Default sort order is ↵yemkareems2024-07-081-2/+2
| | | | | | lastLogin DESC Signed-off-by: yemkareems <yemkareems@gmail.com>
* feat: cs fix run on the changed files and default order by last_login desc. ↵yemkareems2024-07-081-1/+1
| | | | | | Also last_login sort logic changed Signed-off-by: yemkareems <yemkareems@gmail.com>
* feat: add ability to sort users by last_login, uid or displayName. one of ↵yemkareems2024-07-081-5/+7
| | | | | | these needs to be passed as orderBy and sort can be ASC or DESC Signed-off-by: yemkareems <yemkareems@gmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-06-0214-324/+31
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(ldap): sync additional properties to profile and SABJake Nabasny2024-05-301-0/+4
| | | | | | | | | | | | | | | Synced from LDAP to profile: - Date of birth Synced from LDAP to SAB (via the profile): - Biography - Date of birth Original code by Jake Nabasny (GitHub: @slapcat) Co-authored-by: Jake Nabasny <jake@nabasny.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* feat: Add back searching in disabled user listCôme Chilliet2024-05-231-3/+4
| | | | | | | | When disabled users where moved to their own endpoint we overlooked search, so adding it back. The search is done case-insensitive in uid and display name. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(provisioning_api): Add types for user details scopesprovokateurin2024-05-111-14/+16
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* 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>