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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
jnoel100
New Member

How to set-up RLS for users with different email aliases

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?

1 ACCEPTED SOLUTION
v-jialongy-msft
Community Support
Community Support

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

 

vjialongymsft_0-1700738134468.png

 

Then you can use expressions like the following

vjialongymsft_1-1700738608977.png

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

 

View solution in original post

1 REPLY 1
v-jialongy-msft
Community Support
Community Support

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

 

vjialongymsft_0-1700738134468.png

 

Then you can use expressions like the following

vjialongymsft_1-1700738608977.png

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

 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors