mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
43 lines
909 B
Transact-SQL
43 lines
909 B
Transact-SQL
CREATE PROCEDURE [dbo].[OrganizationUser_CreateMany2]
|
|
@OrganizationUsersInput [dbo].[OrganizationUserType2] READONLY
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
INSERT INTO [dbo].[OrganizationUser]
|
|
(
|
|
[Id],
|
|
[OrganizationId],
|
|
[UserId],
|
|
[Email],
|
|
[Key],
|
|
[Status],
|
|
[Type],
|
|
[AccessAll],
|
|
[ExternalId],
|
|
[CreationDate],
|
|
[RevisionDate],
|
|
[Permissions],
|
|
[ResetPasswordKey],
|
|
[AccessSecretsManager]
|
|
)
|
|
SELECT
|
|
OU.[Id],
|
|
OU.[OrganizationId],
|
|
OU.[UserId],
|
|
OU.[Email],
|
|
OU.[Key],
|
|
OU.[Status],
|
|
OU.[Type],
|
|
OU.[AccessAll],
|
|
OU.[ExternalId],
|
|
OU.[CreationDate],
|
|
OU.[RevisionDate],
|
|
OU.[Permissions],
|
|
OU.[ResetPasswordKey],
|
|
OU.[AccessSecretsManager]
|
|
FROM
|
|
@OrganizationUsersInput OU
|
|
END
|
|
GO
|