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
Anonymous
Not applicable

How to configure row level security

Hi,

 

I need to restrict data access in my power bi report. Following are the categories that I want to define:

1. Category 1 - Users should be able to access all data (no restrictions to be applied)

        1.1 the user email id is present in my back end dataset

         1.2 the user email id is not present in my back end dataset

       for both 1.1 and 1.2 the users should be able to view all data and access the dashboard

2.Category 2- Users should be able to access data relevant to them

 

For category 2 I have configures RLS using userprincipalname() dax and it is working fine.

How do I configure for category 1.

 

Thanks!

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can create a new role "all" set all table filter dax expression as true. Then set these users as "all" role.

4.PNG5.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can create a new role "all" set all table filter dax expression as true. Then set these users as "all" role.

4.PNG5.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

thanks

@v-jayw-msft ...this worked. Is there any limitation on how many members can be added per role?

Hi @Anonymous ,

 

As far as i know, there's no such limitation. You can check the offical document about RLS.

https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls#limitations

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Greg_Deckler
Super User
Super User

@Anonymous - I forget exactly if it is necessary but one way I have done this is to create a column in a table that is simply:

 

Column = 1

 

Then you set your DAX Role RLS rule to be Column = 1. Presto, people in that role can see everything.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Pragati11
Super User
Super User

Hi @Anonymous ,

 

Kindly refer the following article on how RLS can be used in Power BI:

https://radacad.com/row-level-security-configuration-in-power-bi-desktop

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.