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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
rajasekar_o
Helper V
Helper V

Row level Security BM,RM AND SUPERUSER

hi team ,
I need a help,
I set BM wise , RM wise and Super user wise
BM-wise and RM-wise RLS are working properly, but for the super user, the values are not showing
following tables are am using
Cluster table

ARDCLUSTERBMEMAILRMRMMAIL
ARD1CBEBM001tom@gmail.comRM002ramkumar@gmail.com
ARD2CBEBM001tom@gmail.comRM002ramkumar@gmail.com
ARD3CBEBM001tom@gmail.comRM002ramkumar@gmail.com
ARD4CBEBM001tom@gmail.comRM002ramkumar@gmail.com
ARD5CBEBM001tom@gmail.comRM002ramkumar@gmail.com
ARD6MASBM002ram@gmail.comRM001gru@gmail.com
ARD7MASBM002ram@gmail.comRM001gru@gmail.com
ARD8MASBM002ram@gmail.comRM001gru@gmail.com
ARD9MASBM002ram@gmail.comRM001gru@gmail.com
ARD10MASBM002ram@gmail.comRM001gru@gmail.com
ARD11MDUBM003karthick@gmail.comRM002ramkumar@gmail.com
ARD12MDUBM003karthick@gmail.comRM002ramkumar@gmail.com
ARD13MDUBM003karthick@gmail.comRM002ramkumar@gmail.com
ARD14MDUBM003karthick@gmail.comRM002ramkumar@gmail.com
ARD15MDUBM003karthick@gmail.comRM002ramkumar@gmail.com
ARD16SABM004suriya@gmail.comRM001gru@gmail.com
ARD17SABM004suriya@gmail.comRM001gru@gmail.com
ARD18SABM004suriya@gmail.comRM001gru@gmail.com
      

Super user

EMAILNAMECLUSTER
vinoth@gmail.comvinothMAS
vinoth@gmail.comvinothCBE
vinoth@gmail.comvinothMDU
vinoth@gmail.comvinothSA
vani@gmail.omVANISA
vani@gmail.omVANICBE
vani@gmail.omVANIMDU

Sales

ARDSALESDATEINV NO
ARD1500001-01-2024INV001
ARD230001-01-2024INV002
ARD3350001-01-2024INV003
ARD4584401-01-2024INV004
ARD5800001-01-2024INV005
ARD6584701-01-2024INV006
ARD7354301-01-2024INV007
ARD84646501-01-2024INV008
ARD9454301-01-2024INV009
ARD106401-01-2024INV010
ARD11676701-01-2024INV011
ARD124564501-01-2024INV012
ARD1376801-01-2024INV013
ARD14465701-01-2024INV014
ARD15467401-01-2024INV015
ARD1646701-01-2024INV016
ARD176901-01-2024INV017
ARD1846701-01-2024INV018
ARD1654401-02-2024INV019
ARD2435424501-02-2024INV020
ARD34601-02-2024INV021
ARD443535401-02-2024INV022
ARD534601-02-2024INV023
ARD65601-02-2024INV024
ARD735601-02-2024INV025
ARD835601-02-2024INV026
ARD935601-02-2024INV027
ARD1078501-02-2024INV028
ARD1185701-02-2024INV029
ARD126301-02-2024INV030
ARD135401-02-2024INV031
ARD145201-02-2024INV032
ARD155401-02-2024INV033
ARD1645701-02-2024INV034
ARD17457301-02-2024INV035
ARD1835601-02-2024INV036

 

 

rajasekar_o_1-1717695383119.png

 

sales and cluster is related with many to one relation
cluster and superuser related with many to many relation 
RLS DAX :

BM:'CLUSTER'[EMAIL]=USERPRINCIPALNAME()
RM:'CLUSTER'[RMMAIL]=USERPRINCIPALNAME()
SUPER USER:'SUPER USER'[EMP ID]=USERPRINCIPALNAME()

super user result not showing

rajasekar_o_0-1717695368078.png

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

Hi @rajasekar_o 

You need to use the "Email" column of the "super user" table to write the Rls formula

 

vjialongymsft_0-1717723104488.png


The correct RLS formula should look like this:

'Super user'[EMAIL] = USERPRINCIPALNAME()

 

 

 

 

 

 

Best Regards,

Jayleny

 

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-jialongy-msft
Community Support
Community Support

Hi @rajasekar_o 

You need to use the "Email" column of the "super user" table to write the Rls formula

 

vjialongymsft_0-1717723104488.png


The correct RLS formula should look like this:

'Super user'[EMAIL] = USERPRINCIPALNAME()

 

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.