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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Ait-james
Frequent Visitor

RLS based to userprincipalname value in Power BI desktop

Hello everyone,

 

1) This is my data model :

Aitjames_0-1636904310922.png

2)

Data of sheet 1

Aitjames_2-1636904447154.png

Data of sheet 2

Aitjames_3-1636904526169.png

 

3) I created of role dedicated for filtring data based to the value of the field C5. Exp xknd5239@aaa.com

Aitjames_4-1636904638350.png

4) When I try "View as", I don't see any changes in my data.

Aitjames_6-1636904826893.png

 

Could you please help me to fix that ?

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You can create roles in Power BI Desktop but assigning people to roles is done in the service. See here:
https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls#working-with-members

 

It's not filtering for xknd5239@aaa.com since it doesn't know that this user corresponds to the new role you've created.

View solution in original post

2 REPLIES 2
Ait-james
Frequent Visitor

Thank you !

AlexisOlson
Super User
Super User

You can create roles in Power BI Desktop but assigning people to roles is done in the service. See here:
https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls#working-with-members

 

It's not filtering for xknd5239@aaa.com since it doesn't know that this user corresponds to the new role you've created.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.