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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
MSchultz93
Frequent Visitor

Embed Power BI in Sharepoint

Hi, 

 

I have a bit more complex usecase embedding Power BI apps on a Sharepoint. The issue is the following,

 

There exists 3 different types of roles at the company

    - Employees

    - Partners

    - Admin

 

There exists 2 Power BI apps

     - Employees-app

     - Partner-app 

 

On the start site on Sharepoint the following is requested. 

     - Employees, only see the Employee-app

     - Partners, only see the Employee-app and the Partner-app

     - Admins, see neither app

 

How would I show/hide reports based on the role the person has. Simply using RLS doesn't work, since the reports should be complete hidden.

 

Thank you!

3 REPLIES 3
Poojara_D12
Super User
Super User

Hi @MSchultz93 

To dynamically show or hide Power BI apps on a SharePoint page based on user roles (Employees, Partners, Admins), you need to control visibility at the SharePoint level rather than just using Row-Level Security (RLS) in Power BI. The best approach is to use SharePoint Audience Targeting combined with Azure AD security groups. First, create three security groups in Azure Active Directory (AAD): one for Employees, one for Partners, and one for Admins. Then, configure Power BI app permissions to ensure Employees can only access the Employee-app, Partners can access both the Employee-app and Partner-app, and Admins have no access to either. In SharePoint, use the Power BI web part and enable Audience Targeting so that each embedded report is visible only to the correct group. This ensures that Employees see only their app, Partners see both apps, and Admins see none. If additional flexibility is needed, a custom SharePoint Framework (SPFx) solution can be implemented to dynamically retrieve user roles via Microsoft Graph API and control the visibility of embedded reports. This approach ensures that users only see the reports they are meant to access, rather than just restricting the data within the reports.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

Hi, 

Thank you for your reply! I have created the groups as you said and I've created the embeded Power BI reports, however I cannot find audience targeting for the spcific Power BI object. Where is that setting?

MSchultz93_0-1739525347676.png

 

 

v-shex-msft
Community Support
Community Support

HI @MSchultz93,

AFAIK, current the embed to SharePoint feature seems not support advanced customize based on users.
Perhaps you can try to create different versions of report based on requirements and share to different users.
In addition, you can also submit an idea about improve the embed to SharePoint features.

Microsoft Fabric Ideas

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.