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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
bideveloper555
Helper IV
Helper IV

Power Bi Service RLS Dynamic with adding Email Address

 

hi

I did create RLS and it is working on Power bi Desktop.

but in my organisation ,more than 1000s of users name.

i am using USERPRINCIPALNAME ()  for RLS.

with out adding Email address(1000) time,is there any dynamic way, user can see the data as RLS Defined.

 

If user abc@test.com login, he should able to see his data as per RLS defined with out adding email address below?

If i add,it works perfect but i need to add 1000 and when new user turns up or user leaves, hard to keep track.

bideveloper555_2-1633441121223.png

 

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Use distribution lists.  Ideally manage these distribution lists in a separate application lifecycle tool, including ways for users to subscribe and renew membership,  with approvals and automatic cleanup when users leave the company. 

View solution in original post

5 REPLIES 5
bideveloper555
Helper IV
Helper IV

this has been now fixed. i no longer need. thank you @lbendlin 

Hey How You Solved That Problem. 

IF (

CALCULATE (

COUNTROWS ( 'StaffTable' ),

FILTER ( StaffTable, 'StaffTable'[Username] = USERPRINCIPALNAME () && [Admin] )

) > 0,

[Country]

= CALCULATE (

MAX ( 'StaffTable'[Country] ),

FILTER ( 'StaffTable', 'StaffTable'[Username] = USERPRINCIPALNAME () )

),

[Username] = USERPRINCIPALNAME ()

)

 

My table has admin bit flag. 1 has full access and 0 are restricted to allocation of the table.

IDNameUsernameAdminCountry
1Johnjohn@email.com0UK
2Peterp@email.com1uk

 

Hi BiDeveloper555,

 

Can you Give Me More Details on the Same.

Like one Question I have Is Where you have put this Expression

 

Thankyou

lbendlin
Super User
Super User

Use distribution lists.  Ideally manage these distribution lists in a separate application lifecycle tool, including ways for users to subscribe and renew membership,  with approvals and automatic cleanup when users leave the company. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.