mirror of
https://github.com/bitwarden/server
synced 2026-01-05 01:53:17 +00:00
* Add support for bulk confirm * Add missing sproc to migration * Change ConfirmUserAsync to internally use ConfirmUsersAsync * Refactor to be a bit more readable * Change BulkReinvite and BulkRemove to return a list of errors/success * Refactor * Fix removing owner preventing removing non owners * Add another unit test * Use fixtures for OrganizationUser and Policies * Fix spelling
19 lines
307 B
Transact-SQL
19 lines
307 B
Transact-SQL
CREATE PROCEDURE [dbo].[User_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].[UserView]
|
|
WHERE
|
|
[Id] IN (SELECT [Id] FROM @Ids)
|
|
END
|