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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
ARK-86
Regular Visitor

Dataset Credentials Issue - Power BI Service

Hi,

 

We have set up Azure SQL Database and building reports using Power BI.

 

On Azure SQL Database, we have enabled dynamic masking. We have created two database users, one (USER_MASK) that can only see masked data and another (USER_UNMASK) that can see unmasked data.

 

On Power BI, we have created two datasets, DS_MASK and DS_UNMASK. I have created a workspace (WS_MASK) containing dataset DS_MASK. In Power BI Desktop, I made sure that, in 'Data Source Settings', database user (USER_MASK) is set and published a report containing masked column to workspace WS_MASK. I then added a Power BI user as member to this workspace.

 

The issue is that when I run the report from Power BI admin user, it shows masked data as expected. But when that user runs the same report, he sees unmasked data. Why is that? Why dataset credentials are not being used when the user is running the same report?

 

I tracked Azure SQL Database query sessions as well. When I run the report from Power BI admin user, the query received from Power BI is using USER_MASK. But when Power BI user runs the same report, the query received is using USER_UNMASK.

 

Why and how is the user bypassing dataset credentials on which the report is built upon?

 

Really appreciate your support on this.

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @ARK-86 ,

You could refer the following article, it tells how to achieve Dynamic data masking in Power BI using Analysis Services and SQL Server:

https://www.linkedin.com/pulse/dynamic-data-masking-power-bi-using-analysis-services-anthony-bulk 

https://www.sqlshack.com/implementing-dynamic-data-masking-in-azure-sql-database/ 

vluwangmsft_0-1661930381450.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Lucien

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.