mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
22 lines
449 B
MySQL
22 lines
449 B
MySQL
|
IF OBJECT_ID('[dbo].[SsoUser_ReadByUserIdOrganizationId]') IS NOT NULL
|
||
|
BEGIN
|
||
|
DROP PROCEDURE [dbo].[SsoUser_ReadByUserIdOrganizationId]
|
||
|
END
|
||
|
GO
|
||
|
|
||
|
CREATE PROCEDURE [dbo].[SsoUser_ReadByUserIdOrganizationId]
|
||
|
@UserId UNIQUEIDENTIFIER,
|
||
|
@OrganizationId UNIQUEIDENTIFIER
|
||
|
AS
|
||
|
BEGIN
|
||
|
SET NOCOUNT ON
|
||
|
|
||
|
SELECT
|
||
|
*
|
||
|
FROM
|
||
|
[dbo].[SsoUserView]
|
||
|
WHERE
|
||
|
[UserId] = @UserId
|
||
|
AND [OrganizationId] = @OrganizationId
|
||
|
END
|