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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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