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
Pbi07
Helper V
Helper V

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
Continued Contributor
Continued Contributor

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.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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