diff --git a/util/Migrator/DbScripts/2024-11-06-00_BulkOrgUserRevoke.sql b/util/Migrator/DbScripts/2024-11-06-00_BulkOrgUserRevoke.sql new file mode 100644 index 0000000000..dec6edf3b1 --- /dev/null +++ b/util/Migrator/DbScripts/2024-11-06-00_BulkOrgUserRevoke.sql @@ -0,0 +1,15 @@ +CREATE OR ALTER PROCEDURE [dbo].[OrganizationUser_SetStatusForUsersById] + @OrganizationUserIds AS [dbo].[GuidIdArray] READONLY, + @Status SMALLINT +AS +BEGIN + SET NOCOUNT ON + UPDATE + [dbo].[OrganizationUser] + SET + [Status] = @Status + WHERE + [Id] IN (SELECT Id from @OrganizationUserIds) +END + +EXEC [dbo].[User_BumpAccountRevisionDateByOrganizationUserIds] @OrganizationUserIds