1
0
mirror of https://github.com/bitwarden/server synced 2026-01-04 17:43:53 +00:00
Files
server/src/Sql/dbo/Views/OrganizationUserOrganizationDetailsView.sql
2018-04-02 17:20:06 -04:00

24 lines
494 B
Transact-SQL

CREATE VIEW [dbo].[OrganizationUserOrganizationDetailsView]
AS
SELECT
OU.[UserId],
OU.[OrganizationId],
O.[Name],
O.[Enabled],
O.[UseGroups],
O.[UseDirectory],
O.[UseEvents],
O.[UseTotp],
O.[Use2fa],
O.[SelfHost],
O.[UsersGetPremium],
O.[Seats],
O.[MaxCollections],
O.[MaxStorageGb],
OU.[Key],
OU.[Status],
OU.[Type]
FROM
[dbo].[OrganizationUser] OU
INNER JOIN
[dbo].[Organization] O ON O.[Id] = OU.[OrganizationId]