1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-16 23:27:30 -05:00
Commit Graph

43 Commits

Author SHA1 Message Date
d39f45c81c Organization autoscaling (#1585)
* Add autoscale fields to Organization

* Add autoscale setting changes

* Autoscale organizations

updates InviteUsersAsync to support all invite sources.

sends an email to org owners when organization autoscaled

* All organizations autoscale

Disabling autoscaling can be done by setting max seats to current seats.

We only warn about autoscaling on the first autoscaling event.

* Fix tests

* Bug fixes

* Simplify subscription update logic

* Void invoices that fail to delete

Stripe no longer allows deletion of draft invoices that were created as part of subscription updates. It's necessary to void out these invoices without sending tem to the client.

* Notify org owners when their subscription runs out of seats

* Use datetime for notifications

Allows for later re-sending email if we want to periodically remind
owners

* Do not update subscription if it already matches new quatity

* Include all migrations

* Remove unnecessary inline styling

* SubscriptionUpdate handles update decisions

* Remove unnecessary html setter

* PR review

* Use minimum access for class methods
2021-09-23 05:36:08 -05:00
feb3106f37 [Provider] Create and access child organizations (#1427) 2021-07-08 17:05:32 +02:00
908e1504af Fix bulk fingerprints (#1442)
* Fix fingerprint phrases in bulk confirm modal

* Fix indentation
2021-07-07 20:21:52 +10:00
d4cf6d929a Bulk Confirm (#1345)
* Add support for bulk confirm

* Add missing sproc to migration

* Change ConfirmUserAsync to internally use ConfirmUsersAsync

* Refactor to be a bit more readable

* Change BulkReinvite and BulkRemove to return a list of errors/success

* Refactor

* Fix removing owner preventing removing non owners

* Add another unit test

* Use fixtures for OrganizationUser and Policies

* Fix spelling
2021-05-25 19:23:47 +02:00
c7f88ae430 [Reset Password] Get/Post Org Keys and API updates (#1323)
* [Reset Password] Organization Keys APIs

* Updated details response to include private key and added more security checks for reset password methods

* Added org type and policy security checks to the enrollment api

* Updated based on PR feedback

* Added org user type permission checks

* Added TODO for email to user

* Removed unecessary policyRepository object
2021-05-19 09:40:32 -05:00
7a7668b754 Add API for bulk removal of org users (#1320)
* Add API for bulk removal of org users

* Refactor OrganizationService, extract some common code.

* Add tests for DeleteUserAsync

* Add tests for DeleteUsers

* Formating

* Update test/Core.Test/Services/OrganizationServiceTests.cs

added a space

Co-authored-by: Addison Beck <abeck@bitwarden.com>
2021-05-17 10:10:44 +02:00
e2f633dace Bulk re-invite of org users (#1316)
* Add APIs for Bulk reinvinte

* Resolve review comments.
2021-05-12 11:18:25 +02:00
477f679fc6 [Reset Password] Admin reset actions (#1272)
* [Reset Password] Admin reset actions

* Updated thrown except for permission collision

* Updated GET/PUT password reset to use orgUser.Id for db operations
2021-04-20 16:58:57 -05:00
296e3d881d [Reset Password] Enrollment API, Service, and Model updates (#1245)
* [Reset Password] Enrollment API, Service and Model updates

* Added conditional check for calling User's ID
2021-03-30 09:48:52 -05:00
61ee3f1e45 Let Manage Users permission see group membership (#1135) 2021-02-12 08:14:00 +10:00
edd4bc2623 Add disable send policy (#1130)
* Add Disable Send policy

* Test DisableSend policy

* PR Review

* Update tests for using CurrentContext

This required making an interface for CurrentContext and mocking out
the members used. The interface can be expanded as needed for tests.

I moved CurrentContext to a folder, which changes the namespace
and causes a lot of file touches, but most are just adding a reference

* Fix failing test

* Update exemption to include all exempt users

* Move all CurrentContext usages to ICurrentContext

* PR review. Match messaging with Web
2021-02-04 12:54:21 -06:00
63fcdc1418 Implemented Custom role and permissions (#1057)
* Implemented Custom role and permissions

* Converted permissions columns to a json blob

* Code review fixes for Permissions

* sql build fix

* Update Permissions.cs

* formatting

* Update IOrganizationService.cs

* reworked a conditional

* built out tests for relevant organization service methods

* removed unused usings

* fixed a broken test and a bad empty string init

* removed 'Attribute' from some attribute instances
2021-01-12 11:02:39 -05:00
9800b752c0 Changed all C# control flow block statements to include space between keyword and open paren 2020-03-27 14:36:37 -04:00
0f9ec8d64f check user has 2fa enabled when confirming 2020-03-09 15:13:40 -04:00
81424a8526 Enforce 2fa policy (#654) 2020-02-19 14:56:16 -05:00
e40d581422 no need to owner group change check 2019-03-28 12:37:17 -04:00
4a38713c4b return twofactor enabled property on org users api 2018-12-19 11:48:36 -05:00
7db36e0005 api adjustments for manager role and collections 2018-10-17 14:58:45 -04:00
2307c8c19c add back missing verbs for backwards compat 2018-07-16 17:32:08 -04:00
f1b8301428 event page default is 50 2018-07-11 14:24:27 -04:00
28770d3761 events for collections, groups, and org users 2017-12-01 16:00:30 -05:00
2444346ea9 only owners can manage owners 2017-09-27 22:37:13 -04:00
ef3d5ee10c user null checks for unauthorized 2017-06-02 13:17:46 -04:00
c582929daf bulk invite apis 2017-05-18 12:04:43 -04:00
933a3feade sync with user externalids 2017-05-16 00:11:21 -04:00
21d1cd6adc collection user refactor 2017-05-11 14:52:35 -04:00
f0d7dc8023 Group access & sproc/model refactoring. 2017-05-11 10:32:25 -04:00
7a4d20ac1f group user assignment apis 2017-05-09 19:04:01 -04:00
da03c276aa rename AccessAllCollections => AccessAll 2017-04-27 15:35:42 -04:00
77aec3977c renaming collection linq predicates 2017-04-27 09:39:21 -04:00
c6ac82dadd renaming subvault => collection 2017-04-27 09:19:30 -04:00
b0b6cac97b Flag for org users to access all subvaults 2017-04-20 23:50:12 -04:00
c4ab901098 remove admin checks from services for ctrl context 2017-04-05 16:29:46 -04:00
73b23a53ea model validation 2017-03-28 22:03:57 -04:00
b7254519f0 organization user apis, hardening, completeness 2017-03-23 00:17:34 -04:00
7112496ff4 manage user type 2017-03-13 23:31:17 -04:00
c8d6a26ec3 user vault associations 2017-03-13 22:54:24 -04:00
cfb4d1453c org user subvaults apis 2017-03-11 22:42:27 -05:00
4a9206b992 get subvaults for organization user 2017-03-11 15:34:57 -05:00
4bcfab589d SubvaultUser APIs and services 2017-03-09 23:58:43 -05:00
8bcd4e0463 move all models into core 2017-03-08 21:55:08 -05:00
7ca8629a13 org user details apis 2017-03-06 20:51:13 -05:00
5ac2113cac org user management apis 2017-03-04 21:28:41 -05:00