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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.