Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to filter sales data by access rights defined in Azure SQL?

I have "ProjectAccess" table in Azure Server. It has columns "ProjectId", "AzureADEmailAddress".

I have "SalesFact" table with columns "SalesId", "ProjectId", "SalesTime","SalesAmount".

 

How do limit access for logined user so that he sees only Sales data where he have access rights based on ProjectAccess?

 

I know how role based security works, but this time access rights are defined in Azure SQL.

We can use Analysies Services Tabular model if needed to meet this requirement?

 

 

 

2 REPLIES 2
quentin_vigne
Solution Sage
Solution Sage

Hi @Anonymous

 

If you have a table with email adress and right given, you can easily add Row Level Security to your report by using YourTable[YourColumn]=USERNAME() and putting it on your access table

 

Quentin

Anonymous
Not applicable

1) I have Azure SQL column = "john.smith@hello.com"

2) I create "ProjectManager" role.

3) YourTable[YourColumn]= "john.smith@hello.com"  WORKED FINE

 

4) YourTable[YourColumn]=USERNAME()                   RETURN NOTHING

 

What could be wrong? Only UPN is supported?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.