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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
rajasekar_o
Helper IV
Helper IV

Row level security_

HI TEAME,
I need help
i want to set Row level security  for BM ,RM ,FULL ACCESS
I HAVE table 

ASMAREAGROUPBMIDBM EMAILRM IDRM EMAIL
RAMCHENNAITNBM001CHBM@GMAIL.COM  
KUMARMADURAITNBM002MDUBM@GMAIL.COMRM001RMN@GMAIL.COM
VINOTHSELAMTNBM003SABM@GMAIL.COMRM001RMN@GMAIL.COM
VISUMYSURUKABM004BMMSY@GMAIL.COMRM002RMK@GMAIL.COM
RAMKAVERIKABM005BMKV@GMAIL.COMRM002RMK@GMAIL.COM
SELVIBANGALURUKABM005BMKV@GMAIL.COMRM002RMK@GMAIL.COM

FULL ACCES USER

NAMEUSERID ACCES TYPEAREA
KALAIKALAI@MAIL.COMFULL ACCESSCHENNAI
KALAIKALAI@MAIL.COMFULL ACCESSMADURAI
KALAIKALAI@MAIL.COMFULL ACCESSSELAM
KALAIKALAI@MAIL.COMFULL ACCESSMYSURU
KALAIKALAI@MAIL.COMFULL ACCESSKAVERI
KALAIKALAI@MAIL.COMFULL ACCESSBANGALURU
SONUSONU@GMAIL.COMFULL ACCESSCHENNAI
SONUSONU@GMAIL.COMFULL ACCESSMADURAI
SONUSONU@GMAIL.COMFULL ACCESSSELAM
SONUSONU@GMAIL.COMFULL ACCESSMYSURU
SONUSONU@GMAIL.COMFULL ACCESSKAVERI
SONUSONU@GMAIL.COMFULL ACCESSBANGALURU

SALES DATA 

ASMSALES
RAM145982
KUMAR23542
VINOTH234234
VISU2354
RAM34223
SELVI23452

BM NEED NEED TO ACCES THER DATA ONLY
RM NEED TO ACCESS RELATED BM SALES DATA
FULL ACCESS USER NEED ACCES RELATED AREA SALES  

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

Hi @rajasekar_o ,

 

Please follow these steps:

 

1. Define roles in Power BI Desktop:

 

Navigate to the Modeling tab and select Manage Roles.

vhuijieymsft_0-1715912508976.png

 

vhuijieymsft_1-1715912508978.png

 

Create three roles: BM, RM, and Full Access.

 

For the BM role:

vhuijieymsft_2-1715912526942.png

vhuijieymsft_3-1715912526945.png

 

For the RM role:

vhuijieymsft_4-1715912538150.png

 

For full access, filters are not needed as they should allow access to all data.

vhuijieymsft_5-1715912538153.png

 

If you don't want to see the entire contents of the table, enter the following expression.

vhuijieymsft_6-1715912557404.png

 

2. Assign users to roles in the Power BI service:

 

After publishing the report to Power BI Service, go to Dataset Settings.

vhuijieymsft_7-1715912557404.png

 

Under Security, assign users to the roles you defined based on their email addresses.

vhuijieymsft_8-1715912570729.png

 

3. Test RLS:

 

In Power BI Desktop, use the View as Role feature to test by simulating different roles.

vhuijieymsft_9-1715912570731.png

 

For more details please see:

Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

Row-level security (RLS) guidance in Power BI Desktop - Power BI | Microsoft Learn

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

1 REPLY 1
v-huijiey-msft
Community Support
Community Support

Hi @rajasekar_o ,

 

Please follow these steps:

 

1. Define roles in Power BI Desktop:

 

Navigate to the Modeling tab and select Manage Roles.

vhuijieymsft_0-1715912508976.png

 

vhuijieymsft_1-1715912508978.png

 

Create three roles: BM, RM, and Full Access.

 

For the BM role:

vhuijieymsft_2-1715912526942.png

vhuijieymsft_3-1715912526945.png

 

For the RM role:

vhuijieymsft_4-1715912538150.png

 

For full access, filters are not needed as they should allow access to all data.

vhuijieymsft_5-1715912538153.png

 

If you don't want to see the entire contents of the table, enter the following expression.

vhuijieymsft_6-1715912557404.png

 

2. Assign users to roles in the Power BI service:

 

After publishing the report to Power BI Service, go to Dataset Settings.

vhuijieymsft_7-1715912557404.png

 

Under Security, assign users to the roles you defined based on their email addresses.

vhuijieymsft_8-1715912570729.png

 

3. Test RLS:

 

In Power BI Desktop, use the View as Role feature to test by simulating different roles.

vhuijieymsft_9-1715912570731.png

 

For more details please see:

Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

Row-level security (RLS) guidance in Power BI Desktop - Power BI | Microsoft Learn

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.