mirror of
https://github.com/bitwarden/server
synced 2026-01-05 01:53:17 +00:00
27 lines
553 B
Transact-SQL
27 lines
553 B
Transact-SQL
CREATE PROCEDURE [dbo].[Collection_ReadByUserId_V2]
|
|
@UserId UNIQUEIDENTIFIER
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
SELECT
|
|
Id,
|
|
OrganizationId,
|
|
[Name],
|
|
CreationDate,
|
|
RevisionDate,
|
|
ExternalId,
|
|
MIN([ReadOnly]) AS [ReadOnly],
|
|
MIN([HidePasswords]) AS [HidePasswords],
|
|
MIN([Manage]) AS [Manage]
|
|
FROM
|
|
[dbo].[UserCollectionDetails_V2](@UserId)
|
|
GROUP BY
|
|
Id,
|
|
OrganizationId,
|
|
[Name],
|
|
CreationDate,
|
|
RevisionDate,
|
|
ExternalId
|
|
END
|