Forum Discussion
verianalizi
2 years agoFrequent Visitor
Azure AD Security Group In Lakehouse SQL analytics endpoint
Hello, Can I access AD Security group in Lakehouse SQL analytics endpoint? I tried IS_MEMBER ('AnyGroupName') function. But it didn't work. It returned "NULL". Do you have any idea? My aim is to cr...
Anonymous
2 years agoNot applicable
Hi verianalizi ,
Please refer this link - Row-level security in Fabric data warehousing - Microsoft Fabric | Microsoft Learn
fabricator1
2 years agoAdvocate II
Hi Anonymous,
The approach shown in the link, is using USER_NAME() for single user only.
-- Creating a function for the SalesRep evaluation
CREATE FUNCTION Security.tvf_securitypredicate(@SalesRep AS nvarchar(50))
RETURNS TABLE
WITH SCHEMABINDING
AS
RETURN SELECT 1 AS tvf_securitypredicate_result
WHERE @SalesRep = USER_NAME() OR USER_NAME() = '[email protected]';
GO
How can we do it for Entra ID security groups?
I have tried to do that, but I wasn't succesful. Can you provide some guidance. Please see my post: SQL Analytics Endpoint - RLS for Security Groups - Microsoft Fabric Community