mirror of
https://github.com/bitwarden/server
synced 2026-01-07 19:13:50 +00:00
35 lines
952 B
Transact-SQL
35 lines
952 B
Transact-SQL
CREATE PROCEDURE [dbo].[OrganizationUser_UpdateMany2]
|
|
@OrganizationUsersInput [dbo].[OrganizationUserType2] READONLY
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
UPDATE
|
|
OU
|
|
SET
|
|
[OrganizationId] = OUI.[OrganizationId],
|
|
[UserId] = OUI.[UserId],
|
|
[Email] = OUI.[Email],
|
|
[Key] = OUI.[Key],
|
|
[Status] = OUI.[Status],
|
|
[Type] = OUI.[Type],
|
|
[AccessAll] = OUI.[AccessAll],
|
|
[ExternalId] = OUI.[ExternalId],
|
|
[CreationDate] = OUI.[CreationDate],
|
|
[RevisionDate] = OUI.[RevisionDate],
|
|
[Permissions] = OUI.[Permissions],
|
|
[ResetPasswordKey] = OUI.[ResetPasswordKey],
|
|
[AccessSecretsManager] = OUI.[AccessSecretsManager]
|
|
FROM
|
|
[dbo].[OrganizationUser] OU
|
|
INNER JOIN
|
|
@OrganizationUsersInput OUI ON OU.Id = OUI.Id
|
|
|
|
EXEC [dbo].[User_BumpManyAccountRevisionDates]
|
|
(
|
|
SELECT UserId
|
|
FROM @OrganizationUsersInput
|
|
)
|
|
END
|
|
GO
|