mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 13:08:17 -05:00
15 lines
375 B
Transact-SQL
15 lines
375 B
Transact-SQL
|
|
CREATE OR ALTER PROCEDURE [dbo].[OrganizationDomain_ReadByOrganizationIds]
|
|
@OrganizationIds AS [dbo].[GuidIdArray] READONLY
|
|
AS
|
|
BEGIN
|
|
|
|
SET NOCOUNT ON
|
|
|
|
SELECT
|
|
d.OrganizationId,
|
|
d.DomainName
|
|
FROM dbo.OrganizationDomainView AS d
|
|
WHERE d.OrganizationId IN (SELECT [Id] FROM @OrganizationIds)
|
|
AND d.VerifiedDate IS NOT NULL;
|
|
END |