1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-04 20:50:21 -05:00
bitwarden/util/Migrator/DbScripts/2025-02-17_00_OrganizationDomain_ReadByOrganizationIds.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