From e6c24c3f3bf6ac10024f489c39de0078fdb54f07 Mon Sep 17 00:00:00 2001 From: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:54:49 -0500 Subject: [PATCH] [PM-11345] Add SCIM to Teams Plan (#4924) * Add SCIM to Teams * Robert's feedback * Feedback --- .../Billing/Models/StaticStore/Plans/TeamsPlan.cs | 1 + .../DbScripts/2024-10-22_00_AddSCIMToTeamsPlan.sql | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 util/Migrator/DbScripts/2024-10-22_00_AddSCIMToTeamsPlan.sql diff --git a/src/Core/Billing/Models/StaticStore/Plans/TeamsPlan.cs b/src/Core/Billing/Models/StaticStore/Plans/TeamsPlan.cs index 7a98c4c30..654792ee0 100644 --- a/src/Core/Billing/Models/StaticStore/Plans/TeamsPlan.cs +++ b/src/Core/Billing/Models/StaticStore/Plans/TeamsPlan.cs @@ -24,6 +24,7 @@ public record TeamsPlan : Plan Has2fa = true; HasApi = true; UsersGetPremium = true; + HasScim = true; UpgradeSortOrder = 3; DisplaySortOrder = 3; diff --git a/util/Migrator/DbScripts/2024-10-22_00_AddSCIMToTeamsPlan.sql b/util/Migrator/DbScripts/2024-10-22_00_AddSCIMToTeamsPlan.sql new file mode 100644 index 000000000..fa190936d --- /dev/null +++ b/util/Migrator/DbScripts/2024-10-22_00_AddSCIMToTeamsPlan.sql @@ -0,0 +1,13 @@ +SET DEADLOCK_PRIORITY HIGH +GO +UPDATE + [dbo].[Organization] +SET + [UseScim] = 1 +WHERE + [PlanType] IN ( + 17, -- Teams (Monthly) + 18 -- Teams (Annually) + ) +SET DEADLOCK_PRIORITY NORMAL +GO