1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

Bulk re-invite of org users (#1316)

* Add APIs for Bulk reinvinte

* Resolve review comments.
This commit is contained in:
Oscar Hinton
2021-05-12 11:18:25 +02:00
committed by GitHub
parent 69c2673f1f
commit e2f633dace
9 changed files with 98 additions and 1 deletions

View File

@ -0,0 +1,24 @@
IF OBJECT_ID('[dbo].[OrganizationUser_ReadByIds]') IS NOT NULL
BEGIN
DROP FUNCTION [dbo].[OrganizationUser_ReadByIds]
END
GO
CREATE PROCEDURE [dbo].[OrganizationUser_ReadByIds]
@Ids AS [dbo].[GuidIdArray] READONLY
AS
BEGIN
SET NOCOUNT ON
IF (SELECT COUNT(1) FROM @Ids) < 1
BEGIN
RETURN(-1)
END
SELECT
*
FROM
[dbo].[OrganizationUserView]
WHERE
[Id] IN (SELECT [Id] FROM @Ids)
END