Search Results :

×

WordPress Power BI Integration | WP Power BI Reports, Dashboards Embedded

Guide to embed Power BI reports, dashboards in WordPress. Integrate Microsoft Power BI with WordPress using miniOrange Embed Power BI WordPress plugin. This setup guide will demonstrate the steps on how to embed PowerBI reports, dashboards, tiles, datasets / semantic model in WordPress pages and posts so users can view the interactive Power BI artifacts from the WordPress site itself. You can also enable row level security (RLS) for a granular view of the Power BI charts in WP.

To configure Embed Microsoft Power BI reports on your site you would need following pre-requisites:

  • You will need Azure AD Global Administrator Access.
  • Our Embed Power BI reports plugin.
  • Log in to Azure AD Portal as admin.
  • You will be represented with the home screen of Azure Active Directory.
  • Under the Azure Services section, select Microsoft Entra ID.
WordPress Power BI |  New registrations

  • In the left tab, under the Manage section, select App registrations.
WordPress Power BI |  New registrations

  • Click on New registration.
WordPress Power BI |  New registrations

  • Assign the Display Name in the name field and choose the account type.
  • In the Redirect URI field, provide the URL of your WordPress site and click on the Register button.
WordPress Power BI |  Register registrations

  • After the registration of an application, Azure AD assigns an unique application ID to your application.
  • Navigate to the Overview tab, in the left pane.
  • Copy the Application ID and the Directory ID, this will be your Client ID and Tenant ID.
WordPress Power BI |  Endpoints

  • From the left navigation pane, navigate to the Certificates & secrets tab.
  • Click on New client secret. Enter the description and expiration time and click on the ADD option.
WordPress Power BI |  Client secret

  • Copy the Secret Value as shown in the below screenshot. Once you navigate to any other page this value will be hidden so copy and paste it somewhere handy.
Note and Contact Us - SSO between two WordPress sites

Note: Make sure you have copied the value of Client Secret and not the Secret ID as shown in the below image.


WordPress Power BI | Secret Key

Add API Permissions to your Azure AD Application
  • Go to API Permissions from the left navigation pane and click on Add a permission option.
WordPress Power BI |  Add a permission

  • Select Microsoft Graph under the Microsoft APIs tab.
WordPress Power BI |  Add a permission

  • Select Application Permissions and search for the User.
WordPress Power BI |  Select permission

  • Under User select User.Read.All permission and click on the Add Permissions button. (Microsoft Graph)
WordPress Power BI |  Select permission

  • Again, click on the Add a permission option.
WordPress Power BI |  Select permission

  • Now select Power BI Service.
power bi embedded for wordpress |  Select permission

  • Select the Delegated Permissions option and search for your Report.
power bi embedded for wordpress |  Select permission

  • Under Report, select Report.Read.All permission and click on the Add Permissions button.
power bi embedded for wordpress |  Select permission

  • Now click on Grant admin consent for Default Directory.
power bi embedded for wordpress |  Select permission

  • In the popup that opens, click on Yes.
power bi embedded for wordpress |  Select permission

  • You can refer to the below image to verify if all the permissions that you have configured are correct and the same as the given image.
power bi embedded for wordpress |  Select permission

  • Now in the Azure AD Portal, navigate to Home > Users tab, then select a specific user from the list.
  • In the user details, you'll find two fields - User principal name and Object ID as shown in the screenshot below keep it handy for testing the plugin. You can also use your own office365 email in the UPN field.
power bi embedded for wordpress |  UPN

  • Now you have successfully configured the Azure AD application.
  • Go to the Power BI dashboard and login as an administrator.
  • You will be represented with the home screen of the Power BI.
  • On the top right corner, click on settings icon as shown below.
WP PowerBI Embed with row level security | click on icon

  • Under the Settings pane as displayed, click on the Admin portal option.
WP PowerBI Embed with row level security | click on admin portal

  • In the Admin Portal section, under the Tenant settings, scroll down to the Developer settings.
  • Click on Service principals can use Fabric APIs.
WP PowerBI Embed with row level security | click on Sevice principal

  • Enable the toggle, select the option Apply to the entire organization and then proceed by clicking on Apply.
WP PowerBI Embed with row level security | Enable service principal

  • Now click on Allow service principals to create and use profiles.
WP PowerBI Embed with row level security | click on admin portal

  • Enable the toggle, select the option Apply to the entire organization and then proceed by clicking on Apply.
WP PowerBI Embed with row level security | Enable the toggle

  • Navigate back to the Home page. Select the Workspaces tab from the left pane and then select your workspace from the list.
WP PowerBI Embed with row level security | Select Workspaces

  • Navigate to the Manage Access option in the navbar as shown in the screenshot below.
WP PowerBI Embed with row level security | Navigate to access tab

  • When you click on Manage Access, you will be presented with a screen showing the current users and security groups having access to the workspace.
  • You can then click on Add people/groups and search for the Azure AD application you created. Select the Azure application (in the setup guide, the application name is Test_application replace this with your own application name) to grant access.
WP PowerBI Embed with row level security | Select dropdown option

  • After that, select Admin from the dropdown and add the application.
WP PowerBI Embed with row level security | Select dropdown option

  • After you have completed configuring the access for the workspace, select the report that you want to embed in WordPress page or post.
  • Then copy the Workspace_ID and Report_ID from the URL as shown in the below image and keep it handy as you will need it further.
WP PowerBI Embed with row level security | Copy the IDs


Step 3: Configure and View Power BI Content using SSO

  • Navigate to the Embed Power BI Reports plugin.
  • Under the Manage Application tab, provide the below information.
WP PowerBI Embed with row level security | Click on Add New

Application ID Paste the Application ID from Azure AD App.
Client Secrets Paste the Client Secret from the Azure AD App.
Redirect URI Enter the URL of your WordPress site.
Tenant ID Paste the Directory ID from Azure AD App.
  • Now perform Test Connection to check if the connection is established by passing UserPrincipleName value, enter the UserPrincipalName or Object ID of the user in the Test UPN/ID field, then click on Save and check the connection.
  • On successful configuration you will be to able to view the attributes recieved from Azure AD for the user.
  • Now you can enable Azure AD SSO into WordPress so that the users in your organization can view the Power BI content.
  • To activate SSO on your WordPress site you need to enable the toggle Add a Single Sign-On button on the WordPress login page.
WP PowerBI Embed with row level security | Click on Add New

Step 3: Configure and View Power BI Content using Customer Flow

  • Go to the Embed Power BI Reports plugin in your WordPress dashboard.
  • Under the Manage Application tab, fill in the following fields:
Application ID Paste the Application ID from Azure AD App.
Client Secrets Paste the Client Secret from the Azure AD App.
Redirect URI Enter the URL of your WordPress site.
Tenant ID Paste the Directory ID from Azure AD App.
WP PowerBI Embed with row level security | Configure Application

  • Now, perform a Test Connection:
    • In the Test UPN/ID field, enter the UserPrincipalName (email) or the Object ID of a user.
    • Click on Save and check the connection.
    WP PowerBI Embed with row level security | Fetch Attributes

  • If the connection is successful, you will see the attribute window displayed below.
WP PowerBI Embed with row level security | Test Connection

  • Go to the Embed Power BI Reports plugin in your WordPress dashboard.
  • Under the Manage Application tab, fill in the following fields:
Application ID Paste the Application ID from Azure AD App.
Client Secrets Paste the Client Secret from the Azure AD App.
Redirect URI Enter the URL of your WordPress site.
Tenant ID Paste the Directory ID from Azure AD App.
WP PowerBI Embed with row level security | Configure Application

  • Now, perform a Connection:
    • In the Test UPN/ID field, enter the UserPrincipalName (email) of a user who has a valid Power BI license (this user will act as the master user).
    • Click on Save and then click on Fetch Attributes.
    WP PowerBI Embed with row level security | Create Connection

  • Once clicked on Fetch Attribute the window will popup as shown below, select the microsoft account under which you have valid Power BI account
WP PowerBI Embed with row level security | Select Valid Power BI Account

  • If the connection is successful, you will see the attribute window displayed below.
WP PowerBI Embed with row level security | Test Configuration

Step 4: Embed Power BI report into WordPress

  • Navigate to the Embed Power BI tab in the plugin.
  • Under the option Select resource type to Embed select the appropriate resource type from the dropdown.
  • Additionally enter the Workspace ID, Report ID, Height and Width as per your requirements and click on the Generate Shortcode button.
WP PowerBI Embed with row level security | Click on Add New

  • Now after successful generation of shortcode, you can access the shortcodes in the ShortCodes Generated tab as shown in the below image.
  • Copy the shortcode using the copy button provided with the shortcode.
WP PowerBI Embed with row level security | Add shortcode

Note and Contact Us - SSO between two WordPress sites

Note: You can generate multiple shortcodes in order to embed on your WordPress site.


  • In order to embed the shortcode you can Add a new page or Edit the existing page as shown in the below image.
WP PowerBI Embed with row level security | visit powerbi report

  • Once the page editor is open then click on + symbol and then search for the Shortcode option.
WP PowerBI Embed with row level security | visit powerbi report

  • Now paste the Shortcode that you copied previously and click on the Publish / Update button.
WP PowerBI Embed with row level security | visit powerbi report

  • To view the reports on your WordPress, you would need to initiate SSO from the Azure AD end.
WP PowerBI Embed with row level security | visit powerbi report

  • Also, if a user is not logged in via Azure AD SSO, the user will see a notice to login via SSO in the embed container as shown below.
WP PowerBI Embed with row level security | visit powerbi report

Step 4: Embed Power BI report into WordPres

  • Navigate to the Power BI tab in the plugin and click the Add icon (+).
WordPress SAML SSO | Generate Report Shortcode

  • Enter the following details:
Report Name Give your report a name.
Workspace ID and Report ID These can be copied from your Power BI workspace.
Type Keep this as Report by default, or change to Dashboard or Tile as needed.
WordPress SAML SSO | Enter Shortcode Details

  • Under Select Embed Mode, choose how you want to embed the report:
    • To embed in Create/Edit mode, enter the Dataset ID.
    • To embed in View mode, you can leave the Dataset ID field empty.
    WordPress SAML SSO | Select Embed Mode

  • In the Report has access to section:
    • Select the WordPress roles that should be able to view the report.
    • For example, if you choose Administrator, Contributor, and Subscriber, only those roles will see the report.
    • This setting is only applied if you enable the Only Allow Logged In User Access option.
    WordPress SAML SSO | Report Access

  • Enable Only Allow Logged In User Access if you want to restrict report access to logged-in users only.
    • Turn it off if you want to embed the report publicly.
    WordPress SAML SSO | Enable Logged In User Access

  • (Optional) If you have Row Level Security (RLS) configured in Power BI:
    • Enable the RLS toggle.
    • Enter the Dataset ID required for RLS-based filtering.
    WordPress SAML SSO | Enable RLS

  • (Optional) Enable Enable User Email Domain-RLS Mapping if you want to apply RLS based on the domain of the user’s WordPress email address.
WordPress SAML SSO | Enable User Email Domain-RLS Mapping

  • (Optional) If you're using RLS with WordPress roles, you can map a WordPress role to a corresponding RLS role name (as defined on the Power BI side).
WordPress SAML SSO | RLS with WordPress roles

  • After completing the configuration, click the Save button.
WordPress SAML SSO | Save Configuration

  • Copy the generated Shortcode.
WordPress SAML SSO | Copy Shortcode

  • Paste the shortcode on any WordPress page or post where you want to display the report.
WordPress SAML SSO | Paste Shortcode

  • Click on Publish or Update the page. (Use Preview to check how the embedded report looks.)
WordPress SAML SSO | Preview Page

Note and Contact Us - SSO between two WordPress sites

Note: In this setup, only data for Germany is visible because the Germany (RLS role) is mapped to the Administrator role, and the currently logged-in user has Administrator access.


  • Navigate to the Power BI tab in the plugin and click the Add icon (+).
WordPress SAML SSO | Generate Report Shortcode

  • Turn on Embed a report using the Power BI master user toggle to enable embedding using master user.
WordPress SAML SSO | Embed a report using the Power BI master user

  • Enter the following details:
Report Name Give your report a name.
Workspace ID and Report ID These can be copied from your Power BI workspace.
Type Keep this as Report by default, or change to Dashboard or Tile as needed.
WordPress SAML SSO | Enter Shortcode Details

  • Under Select Embed Mode, choose how you want to embed the report:
    • To embed in Create/Edit mode, enter the Dataset ID.
    • To embed in View mode, you can leave the Dataset ID field empty.
    WordPress SAML SSO | Select Embed Mode

  • In the Report has access to section:
    • Select the WordPress roles that should be able to view the report.
    • For example, if you choose Administrator, Contributor, and Subscriber, only those roles will see the report.
    • This setting is only applied if you enable the Only Allow Logged In User Access option.
    WordPress SAML SSO | Report Access

  • Enable Only Allow Logged In User Access if you want to restrict report access to logged-in users only else turn it off if you want to embed the report publicly.
WordPress SAML SSO | Only Allow Logged In User Access

  • (Optional) If you have Row Level Security (RLS) configured in Power BI:
    • Enable the RLS toggle.
    • Enter the RLS Table Name: Specify the name of the table in your dataset that contains the RLS role mapping logic. Example: EmployeeData
    • Enter the RLS Column Name: Provide the column name that contains the identifier used to filter the data (e.g., email, role, or user ID). Example: UserEmail
    • Enter the Dataset ID required for RLS-based filtering.
    WordPress SAML SSO | Enable RLS Toggle

  • (Optional) Enable Enable User Email Domain-RLS Mapping if you want to apply RLS based on the domain of the user’s WordPress email address.
WordPress SAML SSO | Enable User Email Domain-RLS Mapping

  • (Optional) If you're using RLS with WordPress roles, you can map a WordPress role to a corresponding RLS role name (as defined on the Power BI side).
WordPress SAML SSO | RLS with WordPress roles

  • After completing the configuration, click the Save button.
WordPress SAML SSO | Save Configuration

  • Copy the generated Shortcode.
WordPress SAML SSO | Copy the Generated Shortcode

  • Paste the shortcode on any WordPress page or post where you want to display the report.
WordPress SAML SSO | Paste the Generated Shortcode

  • Click on Publish or Update the page. (Use Preview to check how the embedded report looks.)
WordPress SAML SSO | Preview the Page

Note and Contact Us - SSO between two WordPress sites

Note: In this setup, only data for France is visible because the France (RLS role) is mapped to the Administrator role, and the currently logged-in user has Administrator access.


With this, you have successfully connected Power BI with WordPress allowing you to embed interactive PowerBI reports, charts, and dashboards in WordPress. With additional support for row level security, you can enable a granular view of your Power BI visualizations in your WordPress site.

  • Navigate to the Settings tab of the plugin in order to configure additional settings for the embedded resources.
WP PowerBI Embed with row level security | Click on Add New

  • Filter Pane : This feature enables or disables the display of filter pane on the embedded resource.
  • Page Navigation : This feature enables or disables the display of the page navigation bar below the embedded content.
  • Language : If you wish to view the embedded content in any specific language then you may configure it from this option.
  • Format Locale : By this feature, you may change the locale format for embedded resources.
  • Mobile Breakpoint : This is the value which will be considered for embedding reports in mobile layout. Any width less than the entered amount will trigger the Mobile Report Embed functionality.
  • Mobile Height : This is the height for the mobile layout when width is less than the value entered in Mobile Breakpoint.
  • Mobile Width : This is the width for the mobile layout when width is less than the value entered in Mobile Breakpoint.

You may configure any of the settings above as per your requirements.


Now you have successfully embedded your Power BI report into the WordPress page and provided access to the Power BI report via Azure AD SSO.



ADFS_sso ×
Hello there!

Need Help? We are right here!

support