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