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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
gdarshna
New Member

Row-level security using Organization hierarchy not working in app/web

I have implemented RLS for the Organization hierarchy in the desktop version using the following DAX:

 

[EmailID] = "USERPRINCIPALNAME()"

||[Org Level 4] = "USERPRINCIPALNAME()"

||[Org Level 3] = "USERPRINCIPALNAME()"

||[Org Level 2] = "USERPRINCIPALNAME()"

||[Org Level 1] = "USERPRINCIPALNAME()"

 

Using "Test as roles" i tested it and it works fine. But it doesn't work in the app/web.

 

For example, the Manager is able to view his subordinates in the desktop version, but the cloud version shows blank values despite adding his id to the role created.

 

Any help is highly appreciated!

Cheers guys!!

6 REPLIES 6
Arvin_
New Member

Hi   gdarshna

Did you solve this problem?  If you did, let me know how!  I also have the same problem.

Anonymous
Not applicable

HI @gdarshna,

 

I think you don't need add " symbol to dax formula.
If you add " character, it means you are try to find out 'Email ID' or 'Org Level' columns which has text "USERPRINCIPALNAME()".


In addition, I'd like to suggest you check on group permission, current only read permission members can enable the RLS feature.

 

Row-level security (RLS) with Power BI

Using RLS with app workspaces in Power BI

If you publish your Power BI Desktop report to an app workspace within the Power BI service, the roles will be applied to read-only members. You will need to indicate that members can only view Power BI content within the app workspace settings.

 

Limitations

Here is a list of the current limitations for row-level security on cloud models.

  • If you previously had roles/rules defined within the Power BI service, you will need to recreate them within Power BI Desktop.
  • You can define RLS only on the datasets created using Power BI Desktop client. If you want to enable RLS for datasets created with Excel, you will need to convert your files into PBIX files first. Learn more
  • Only ETL, and DirectQuery connections are supported. Live connections to Analysis Services are handled in the on-premises model.
  • Q&A and Cortana is not supported with RLS at this time. You will not see the Q&A input box for dashboards if all models have RLS configured. This is on the roadmap, but a timeline is not available.
  • External sharing is not currently supported with datasets that use RLS.
  • For any given model, the maximum number of Azure AD principals (i.e. individual users or security groups) that can be assigned to security roles is 1,000. To assign large numbers of users to roles, be sure to assign security groups, rather than individual users.

 

Regards,
Xiaoxin Sheng

 

Hi Xiaoxin Sheng!

 

Thank you for your quick response!

I tried to remove " and it's still showing blank values in the web.

Also, I'm publishing it to My workspace and not to the app workspace.

 

Any suggestions?

Anonymous
Not applicable

Hi @gdarshna,

 

Maybe you can try to use below formula as the RLS formula:

IF (
    [EmailID] = USERPRINCIPALNAME ()
        || [Org Level 4] = USERPRINCIPALNAME ()
        || [Org Level 3] = USERPRINCIPALNAME ()
        || [Org Level 2] = USERPRINCIPALNAME ()
        || [Org Level 1] = USERPRINCIPALNAME (),
    TRUE (),
    FALSE ()
)

4.PNG

 

Regards,

Xiaoxin Sheng

It's still the same 😞

Works in the desktop but gives blanks in the web 😞

Anonymous
Not applicable

Hi @gdarshna,

 

Please write measures to display the result of ‘USERPRINCIPALNAME’ and 'USERNAME' functions.
Then, you can create card visuals with above measures to show the function result to ensure if current user is in the specific columns.

 

Sample measure:

USERNAME = USERNAME()

USERPRINCIPALNAME = USERPRINCIPALNAME()

6.PNG

 

>>Also, I'm publishing it to My workspace and not to the app workspace.

BTW, RLS also not works on dataset owner.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors