cancel
Showing results for 
Search instead for 
Did you mean: 
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
Power BI Show Ep 4 Post Show Carousel.jpg

The Power BI Community Show

Shabnam Watson demos Incremental refresh & Hybrid Tables and Leila Etaati demos Charticulator.

PBI April Release 2022 768x460.png

Check it out!

Click here to read more about the April 2022 updates!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!