How to embed Microsoft Power BI Reports in DNN Applications
Guide to embed Power BI reports, dashboards in DNN. Integrate Microsoft Power BI with DNN using miniOrange embed
Power BI DNN plugin. This setup guide will demonstrate the steps on how to embed Power BI reports, dashboards, tiles,
datasets / semantic model in DNN pages and posts so users can view the interactive Power BI artifacts from the DNN
site itself. You can also enable row level security(RLS) for a granular view of the Power BI charts in DNN.
Pre-requisites :
Download And Installation
To configure and embed Microsoft Power BI reports on your site you would need following pre-requisites:
You will be presented with the home screen of azure active directory.
Under the azure services section, select Microsoft Entra ID.
In the left tab, under the manage section, select App registrations.
Click on new registration.
Assign the Display Name in the name field and choose the account type.
In the Redirect URI field, provide the URL of your DNN site and click on the
Register button.
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.
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.
Copy the value of Secret Key. This will be your Client 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.
Select Microsoft Graph under the Microsoft APIs tab.
Select Application Permissions and search for the User.
Under User select User.Read and User.Read.All permissions and click on the Add
Permissions button.(microsoft graph)
Click on add permission scroll down and select Power BI Service under request api
permission option.
Select Delegate Permission and search for the Report
Under Reports select Report.Read.All permission and click on the Add
Permissionbutton. (Power BI)
Now you can see the all permissions in the api permission section
Click on grant admin consent for default directory and click on Yes on grant admin consent
confirmation.
You have successfully configured the Azure AD application.
2. Configure the Azure AD security group
settings
In the Azure active directory home page, navigate to the Groups from the left pane.
Click on New Group to add a new security group.
Select the Group type as Security from the dropdown and enter the Group Name as
Allow Power BI Admin APIs.
Once you have entered the details click on the Create button to create a new security group.
Search and select newly created security groups (Allow Power BI Admin APIs).
Navigate to the Members tab from the left pane and click on Add Members.
Now search for the application name you have previously configured and click on the select
button.
You have successfully configured Azure AD app to achieve User Sync and Power BI integration into your DNN
site.
2. Steps to configure the Power BI settings
Configure Power BI Settings
Go to the Power BIdashboard 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.
Under the governance and insights click on the admin portal option.
In the admin Portal section, under the tenant settings, scroll down to the developer
settings.
Click on Allow service principals to use Power BI APIs.
Enable the toggle and then click on Apply.
Scroll down to the Admin API settings, enable the toggle and then choose the option of
specific security groups.
Search for DNN Power BI User Group then click on Apply.
Navigate back to the home page. Select the Workspaces tab from the left pane and then select your
workspace from the list.
Navigate to the Manage Access tab.
In the Manage Access section, click on the add Add People or Groups
Search for the application that you have previously configured. From the dropdown select the
Member and click on Add button to assign this Azure AD application to your Power BI
workspace.
Select the report that you want to embed in DNN 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.
Steps to configure the Power BI report into DNN site
3. Add module on DNN site
Open any of the page on your DNN site (edit mode) and click on Add Module.
Search for miniOrange Power BI Integrator and click on the DNNSAMLSSO. Drag and drop the module on the
page where you want.
You have finished with the installation of the module on your DNN site.
4. Embed your Power BI report into the DNN
Now go to your dnn site you can see that module is added successfully.
Click on the settings icon and go to settings
A window will popup go to the miniOrange Power BI Integrator Settings tab.
Go to the Authentication Settings tab and enter Client ID,Client Secret & Tenant ID of your Azure
AD Application then click on save.
Now go to Power BI settings tab and enter the Report name,Workspace_ID and Report_ID of your report.
Also enter the width and height and click on generate script.
The script will be generated which shows Workspace_ID and Report_ID of your Power BI report.
Refresh your DNN site and click on the Power BI sign-in button.
It will redirect you to Azure AD login page. Enter your Azure AD credentials
After successful login the Power BI report will be appear on the screen.
You have successfully embedded your PowerBI report into the DNN page and provided access to the Power BI report
via Azure AD SSO .
Mail us on
dnnsupport@xecurify.com
and we'll help you set up Power BI integration with your DNN and for quick guidance (via
email/meeting) on your requirement and our team will help you to select the
best suitable solution/plan as per your requirement.
×
Hello there!
Need Help? We are right here!
Contact miniOrange Support
Thanks for your inquiry.
If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com