Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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.
Solved! Go to Solution.
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.
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.
ID | Name | Username | Admin | Country |
1 | John | john@email.com | 0 | UK |
2 | Peter | p@email.com | 1 | uk |
Hi BiDeveloper555,
Can you Give Me More Details on the Same.
Like one Question I have Is Where you have put this Expression
Thankyou
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.