1
0
mirror of https://github.com/bitwarden/server synced 2025-12-29 06:33:43 +00:00

org user details apis

This commit is contained in:
Kyle Spearrin
2017-03-06 20:51:13 -05:00
parent 5ac2113cac
commit 7ca8629a13
16 changed files with 128 additions and 51 deletions

View File

@@ -0,0 +1,14 @@
CREATE VIEW [dbo].[OrganizationUserUserDetailsView]
AS
SELECT
OU.[Id],
OU.[UserId],
OU.[OrganizationId],
U.[Name],
ISNULL(U.[Email], OU.[Email]) Email,
OU.[Status],
OU.[Type]
FROM
[dbo].[OrganizationUser] OU
LEFT JOIN
[dbo].[User] U ON U.[Id] = OU.[UserId]