mirror of
https://github.com/bitwarden/server.git
synced 2024-12-03 14:03:33 +01:00
16 lines
412 B
Transact-SQL
16 lines
412 B
Transact-SQL
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
|