Forum Discussion

praneeth's avatar
praneeth
Frequent Visitor
7 years ago

Is it possible to restrict data to other users without adding them for RLS role in dataset

Hi

 

I have created a role in power bi desktop to restrict data for 1000 different users and published to web service. Now I want to share report to 1000 mebers in my team. Is there any way to restrict data with out adding them to role in dataset security options or manually want to add 1000 users one by one for  role.

 

 

3 Replies

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Community Support

    Hi praneeth,

     

    Power BI RLS is used for imported data models and DirectQuery connections. If you connect live to SSAS data models, you can configure the RLS on SSAS side. See: https://docs.microsoft.com/en-us/power-bi/service-admin-rls

     

    In your scenario, as you already created the RLS roles in Power BI desktop, the report should use import or DirectQuery mode. At this time, you need to add users as members of these RLS roles to restrict data access. Instead of add individual user, you can add security group or distribution list as RLS role members. This member has to be within your organization. You cannot add Groups created within Power BI. See: https://docs.microsoft.com/en-us/power-bi/service-admin-rls#working-with-members

     

    Best Regards,
    Qiuyun Yu 

    • praneeth's avatar
      praneeth
      Frequent Visitor

      That means assigning a group or user to role in dataset security option is mandatory to restrict data. But for security group also we want to add 1000 users one by one. For example I have users table with columname usermailID contains user mail ID's and another table has region data joined with users table. I created a role by using filters usermaiID = username() and region = "US" in one role.

      Then also I need to assign all users to role in dataset security option? it is not possible without assigning to role?

      • v-qiuyu-msft's avatar
        v-qiuyu-msft
        Community Support

        Hi praneeth,

         

        Yes. The RLS role on Power BI side only affect the member belong to Security option of the dataset. 

         

        Best Regards,
        Qiuyun Yu