Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 40 | |
| 36 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 38 | |
| 34 | |
| 23 |