diff --git a/src/Api/Controllers/OrganizationsController.cs b/src/Api/Controllers/OrganizationsController.cs index 7e2b5fc8a..6e86f84c9 100644 --- a/src/Api/Controllers/OrganizationsController.cs +++ b/src/Api/Controllers/OrganizationsController.cs @@ -375,7 +375,7 @@ namespace Bit.Api.Controllers public async Task Import(string id, [FromBody]ImportOrganizationUsersRequestModel model) { if (!_globalSettings.SelfHosted && - (model.Groups.Count() > 200 || model.Users.Count(u => !u.Deleted) > 1000)) + (model.Groups.Count() > 2000 || model.Users.Count(u => !u.Deleted) > 2000)) { throw new BadRequestException("You cannot import this much data at once."); } diff --git a/src/Api/Public/Controllers/OrganizationController.cs b/src/Api/Public/Controllers/OrganizationController.cs index 996e26f13..65c7dd987 100644 --- a/src/Api/Public/Controllers/OrganizationController.cs +++ b/src/Api/Public/Controllers/OrganizationController.cs @@ -41,7 +41,7 @@ namespace Bit.Api.Public.Controllers public async Task Import([FromBody]OrganizationImportRequestModel model) { if (!_globalSettings.SelfHosted && - (model.Groups.Count() > 200 || model.Members.Count(u => !u.Deleted) > 1000)) + (model.Groups.Count() > 2000 || model.Members.Count(u => !u.Deleted) > 2000)) { throw new BadRequestException("You cannot import this much data at once."); }