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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Ramyzo
Helper II
Helper II

Assign role to user based on multiple mail column

Greeting guys , 

 

i have a quick question , my client changed his extraction of data he wants to allow the user to see only offer that have access to it. 

 

to get this information i have a column name "access". 

 

The problem "access" column have a list of emails ! 

 

Example :   Access  = "[xxxx@xx.com] , [bbbbb@bbb.com]"  as you can see the column access could have more than 1 email. 

 

any trick i can use in the RLS ? 

 

in the previous version of the data it was simple there was only 1 mail in the column  so all i need to use the USERPRINCIPALNAME() but now the column contain more than 1 mail ! 

 

Thanks all in advance 

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

Hi @Ramyzo ,

 

We can create a RLS rules using CONTAINSSTRING function to meet your requirement:

 

CONTAINSSTRING([Access],USERPRINCIPALNAME())

 

3.jpg4.jpg5.jpg


If it doesn't meet your requirement, Please show the exact expected result based on the Tables that we have shared.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lid-msft
Community Support
Community Support

Hi @Ramyzo ,

 

We can create a RLS rules using CONTAINSSTRING function to meet your requirement:

 

CONTAINSSTRING([Access],USERPRINCIPALNAME())

 

3.jpg4.jpg5.jpg


If it doesn't meet your requirement, Please show the exact expected result based on the Tables that we have shared.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.