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
Ivaylodoynov
Frequent Visitor

Row Level Security - avoiding user assigning to the role

 

Hello,

 

I am having a situation with the Row Level Security.

 

What I am doing is this:

FormulaFormula

 

This is the "formula" I use to set the filter and I was hoping that after using "USERPRINCIPALNAME()" I would not be required to set additional groups(roles) in the web version of PowerBi.

 

This is the result when I am selection to view as the "Security Test" role. Absolutely fine no problems here.Security TestSecurity Test

 

 

However, when I try to switch to view from the app user point of view I get this:

 

Ordinary User without being added to Security Test roleOrdinary User without being added to Security Test role

 

After adding the user in the role. The result is what is actually expected. However, I am trying to avoid assigning each user one by one to the role.

adding user to the Test groupadding user to the Test groupInformation to the Ordinary User after being added to the groupInformation to the Ordinary User after being added to the group

 

My question now - Is it possible to have the "Security Test" functionality without assigning users to this role in the web version of PowerBi.

 

Thank you in advance!

 

Ivo

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Ivaylodoynov 

Sorry for replying late.

It is needed to apply the step assigning role in power bi service in order to use RLS.

If this step is not applied, the RLS configuration won't work as expected.

 

Best Regards

Maggie

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

Greg_Deckler
Super User
Super User

See if the blog article referenced here helps: https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Hierarchical-Row-Level-Security/td-p...

@ 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...

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.