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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ducky
Frequent Visitor

Bypassing Row level security when customer should see all dataset

Hi!

 

We're using CUSTOMDATA() function to pass the customer security ids in Powerbi security roles (RLS ). We do this as some of our customer's users should have permission to see some of the data based on a customerid. 

However some users would have access to all data.

 

Is there a way to bypass RLS only for those users but apply RLS for the others ? 

Objective: what we want to achieve is not to apply RLS where is not needed therefore improving performance. 

 

Regards

1 ACCEPTED SOLUTION
ducky
Frequent Visitor

We ditched the custom data and using username we could just create a new security role that is empty so that would take care of our problem. 

View solution in original post

3 REPLIES 3
ducky
Frequent Visitor

We ditched the custom data and using username we could just create a new security role that is empty so that would take care of our problem. 

Jamie-
Frequent Visitor

There's probably a good way to do this within the RLS settings, but as a quick/easy workaround if you enhance the permissions within the report/workspace and give these users access to the data or enhanced permissions at a workspace level - this will override any RLS settings.

 

Jamie.

ducky
Frequent Visitor

I'm not sure I grasp the meaning of "enhanced permissions at a workspace level " since these customers dont even see the workspace. they connect through an app which has PBI embedded. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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