Forum Discussion

rajasekar_o's avatar
rajasekar_o
Helper V
2 years ago
Solved

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
RAMCHENNAITNBM001[email protected]  
KUMARMADURAITNBM002[email protected]RM001[email protected]
VINOTHSELAMTNBM003[email protected]RM001[email protected]
VISUMYSURUKABM004[email protected]RM002[email protected]
RAMKAVERIKABM005[email protected]RM002[email protected]
SELVIBANGALURUKABM005[email protected]RM002[email protected]

FULL ACCES USER

NAMEUSERID ACCES TYPEAREA
KALAI[email protected]FULL ACCESSCHENNAI
KALAI[email protected]FULL ACCESSMADURAI
KALAI[email protected]FULL ACCESSSELAM
KALAI[email protected]FULL ACCESSMYSURU
KALAI[email protected]FULL ACCESSKAVERI
KALAI[email protected]FULL ACCESSBANGALURU
SONU[email protected]FULL ACCESSCHENNAI
SONU[email protected]FULL ACCESSMADURAI
SONU[email protected]FULL ACCESSSELAM
SONU[email protected]FULL ACCESSMYSURU
SONU[email protected]FULL ACCESSKAVERI
SONU[email protected]FULL 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  

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi rajasekar_o ,

     

    Please follow these steps:

     

    1. Define roles in Power BI Desktop:

     

    Navigate to the Modeling tab and select Manage Roles.

     

     

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

     

    For the BM role:

     

    For the RM role:

     

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

     

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

     

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

     

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

     

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

     

    3. Test RLS:

     

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

     

    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!

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi rajasekar_o ,

     

    Please follow these steps:

     

    1. Define roles in Power BI Desktop:

     

    Navigate to the Modeling tab and select Manage Roles.

     

     

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

     

    For the BM role:

     

    For the RM role:

     

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

     

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

     

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

     

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

     

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

     

    3. Test RLS:

     

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

     

    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!