Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
I have an existing report that uses rls that filters on the users, and has been working fine so far. However it doesn;t seem to be working for one user who recently changed email, while user principal name has stayed the same.
Is there a way to check both email and user principal name when managing roles for RLS?
Solved! Go to Solution.
Hi @jnoel100 ,
Your question is, how do you set up RLS for users with different email aliases
If the user has multiple emails, you may want to account for this in the DAX expression. One way to do this is to create a list of users with all email aliases and match them in a DAX expression
For example, if you have a salesperson with multiple email aliases, you may need a secondary form, UserEmails, that contains the primary email and aliases
Then you can use expressions like the following
This expression ensures that the current user's email address (whether primary or alias) matches at least one of the UserEmails tables
Best regards
Jayleny
Hi @jnoel100 ,
Your question is, how do you set up RLS for users with different email aliases
If the user has multiple emails, you may want to account for this in the DAX expression. One way to do this is to create a list of users with all email aliases and match them in a DAX expression
For example, if you have a salesperson with multiple email aliases, you may need a secondary form, UserEmails, that contains the primary email and aliases
Then you can use expressions like the following
This expression ensures that the current user's email address (whether primary or alias) matches at least one of the UserEmails tables
Best regards
Jayleny
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.