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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Power BI RLS - Test as Role using UPN in Service not working

Hello,

 

I am using RLS to filter for a logged in user within SharePoint. The report is being used in a production team site that has been built. Recently, the data had stopped filtering.

 

In my testing, I created a basic report and created my role "My Tasks" on the user information list (SharePoint list). The role is [UserName] = USERPRINCIPALNAME(). In Power BI Desktop, I am able to test as myself and other users successfully.

 

After I publish to Power BI Service, using get data, and after applying the users to the security role within the data set, I am able to test as myself. However, I am not able to successfully test as another users.

 

In summary, my question are: 

                   1) Why am I not able to test as another user?

                   2) Is this why the report isnt being filtered successfully?

Thank you

 

 

UPDATE

The test users are workspace members who can only view the reports.

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

Hi @Anonymous ,

 

We can assign user to a role, the enter his email to test as other user in Power BI Serice, If the Row Level Security has no effect to this user , please check if this user has edit permission to this report or he is not a viewer of this workspace.

 

Based on this documentIf you have configured the workspace so that members have edit permissions, the RLS roles will not be applied to them. Users will be able to see all of the data.

 

8.jpg


Best regards,

 

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

View solution in original post

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

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

Hi @Anonymous ,

 

We can assign user to a role, the enter his email to test as other user in Power BI Serice, If the Row Level Security has no effect to this user , please check if this user has edit permission to this report or he is not a viewer of this workspace.

 

Based on this documentIf you have configured the workspace so that members have edit permissions, the RLS roles will not be applied to them. Users will be able to see all of the data.

 

8.jpg


Best regards,

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.