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
geckodead
Frequent Visitor

Security on Power Bi Desktop

Hello,

 

I would like to generate a single report that allows me to share it with my clients.

Clients would only access their company's data.

 

I only have a table with various information including the company and the email address of the person.

Small precision: several email addresses can be associated with the same company.

 

For now, I created a "dynamic role" by filtering with the email address and USERPRINCIPALNAME ().

Except that the problem is that for the moment by testing with an email address, I retrieve only the data related to the email address.

 

What I would like is to retrieve the data from the company entirely not just the data of the person who connected to the report.

Is there a solution to my problem?

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey,

just to be sure,

I don't understand what you are going to share with your clients?

 

If it's the pbix file that you created using Power BI Desktop, please be aware that you can't secure the data.

If you sent the PBIX to one of your clients, this client is able to see all the data that is contained in the pbix file.

 

If you are going to share the report with your clients from within the Power BI service, then you have to consider some other aspects.

 

But nevertheless, I would create a table user that contains two columns:

  • email
  • company

create a relationship between the tables

user (one side) -> company (many side) and

company (one side) -> fact (many side)

 

Create a role that filters the company by email.

 

Hopefully this gets you started.

 

Regards

Tom

 

 

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey,

just to be sure,

I don't understand what you are going to share with your clients?

 

If it's the pbix file that you created using Power BI Desktop, please be aware that you can't secure the data.

If you sent the PBIX to one of your clients, this client is able to see all the data that is contained in the pbix file.

 

If you are going to share the report with your clients from within the Power BI service, then you have to consider some other aspects.

 

But nevertheless, I would create a table user that contains two columns:

  • email
  • company

create a relationship between the tables

user (one side) -> company (many side) and

company (one side) -> fact (many side)

 

Create a role that filters the company by email.

 

Hopefully this gets you started.

 

Regards

Tom

 

 

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Finally everything goes in order. I ended up finding the mistake, I applied a security role on the wrong table. Thanks for your help.

Thank you for your message.

 

Yes, I would like to share the report with my clients within the Power Bi Service.

Here is a catch of the relationships. Despite my efforts, it still does not work. I think I was wrong about a relationship but I can not figure out which one. 

 

Basically, I only had the table "ImportFresh". I then from this table, created the table "Append" which includes the company and the email requester.

I deleted entries that were duplicate regarding the email requester. Then I created a table from the email requester column and another company table with data from the company column. For these last two tables, duplicates have also been removed.

 

By testing, it does not work. I retrieve user data only. I would like to retrieve the data regarding all the users that are associated with the company.

 

I may ask too much, but what am I doing that is not good?

Capture.PNG

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.