cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pbi07
Helper IV
Helper IV

RLS working with desktop but not on service after publishing

Having an issue with my RLS. I have the functionality working on desktop, but after publishing users are seeing blank data. 

 

The role is defined as

IF (
USERPRINCIPALNAME() IN VALUES
( 'RLS Users'[Email] ), [Map.Manager2]
IN SELECTCOLUMNS (
FILTER ( 'RLS Users', 'RLS Users'[Email] =
USERPRINCIPALNAME() ), "Mgrs",
'RLS Users'[Manager] ),
[Map.Manager2] IN
VALUES ( SalesFact[Map.Manager2]))

 

RLS USers table structure 

ManagerEmail
Mgr1Mgr1@email.com
Mgr1svp1@email.com

 

I have tried re-publishing and no luck. Wondering if anyone else had the same issue? 

 

 

 

1 ACCEPTED SOLUTION

Thanks @Gabriel_Walkman @TomMartens 

 

I had looked at those upn formats to rule out that issue. 

 

I just republished over the weekend again and it started working. Thanks for providing the suggestions. 

View solution in original post

5 REPLIES 5
Gabriel_Walkman
Responsive Resident
Responsive Resident

When you start writing the user email in the service either to the RLS or workspace access, it should give a popup suggestion. In what format is the user email displayed in the popup?

 

You might need to use a weird format, ie. 

name@clientorg.com

could become

name_clientorg.com#EXT#@yourorgcom0.onmicrosoft.com

or

live#name@clientorg.com

 

You would then have to use this peculiar format in your RLS Users table.

 

There's plenty of topics of this problem in the community, search for something like "external user principalname".

 

Thanks @Gabriel_Walkman @TomMartens 

 

I had looked at those upn formats to rule out that issue. 

 

I just republished over the weekend again and it started working. Thanks for providing the suggestions. 

TomMartens
Super User
Super User

Hey @Pbi07 ,

 

I'm wondering if the user are accessing the content (Report) from inside

  • a workspace
    here RLS will only applied is user have assigned the workspace role: viewer
  • an app
    RLS should be applied

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
parry2k
Super User
Super User

@Pbi07 did you added the users to the RLS role in the service, if not then they will not see it.  check this link

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





@parry2k 

 

Yes. Users were added to the role. Forgot to mention that. 

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors