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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Brysonds
Helper III
Helper III

Role Security Filter Question

Hi!

 

I am implementing RLS on my data set, and have a (hopefully) simple question.

 

I have one role, one table, and one table filter expression

 

Role = Auth required

Table = Invoices

Expression = OR([Sales Position]=USERNAME(), [Management Chain]=USERNAME())

 

The "Sales Position" field contains one e-mail address for the sales person (example: bob@aol.com). RLS works fine here when I view the data as Bob.

 

The "Management Chain" field contains multiple e-mail addresses based on an organizational structure and is stored in the following format (example: carol@aol.com; joe@aol.com; david@aol.com). RLS does not work here if I try to view as any one of those users.

 

I believe it has to do with the formatting of using several e-mail addresses split by a semi-colon. 

 

Is there a way to make this work with the multiple e-mail addresses in one field? I tried chaing the semi-colon to a comma, but that didn't work either. 

 

I could always delimit the values into multiple columns (chain 1, chain 2, etc.) and get it work that way, but was hoping there is a simple formatting solution that will work.

 

Regards,

Bryson

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey @Brysonds,

 

I would recommend using the SEARCH column to see if USERNAME() is contained within the Management Chain field. 

 

-Parker

View solution in original post

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Brysonds,

 

I also agree with Parker_Stevens.

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hey @Brysonds,

 

I would recommend using the SEARCH column to see if USERNAME() is contained within the Management Chain field. 

 

-Parker

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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