Power BI Enterprise Integration Setup Guide | Q-Play

Power Bi - Enterprise Edition

The Power BI Enterprise integration embeds Power BI reports and dashboards on your Q-Play screens using the Power BI Embedded "app owns data" model (also called "embed for your customers"). It is built for organizations that want full control over identity, access and data security: authentication runs through a service principal in your own Microsoft Entra ID tenant, access is governed by Power BI workspace roles, and row-level security (RLS) is fully supported.

Power BI renders the content itself, so what's on screen looks exactly as it does in Power BI. Content can be shown in two ways:

  • Live: the screen embeds the real report or dashboard with the Power BI JavaScript client.
  • Screenshot: Q-Play renders the report or dashboard on its own servers on a schedule, and the screen only receives an image. This works on older or less powerful players.

Before you start, see Working with integrations in Q-Play if you haven't set up an integration before.


How it works

  1. Q-Play authenticates against Microsoft Entra ID with the OAuth 2.0 client credentials flow, as a service principal. The token is requested from login.microsoftonline.com for your tenant, with the scope https://analysis.windows.net/powerbi/api/.default.
  2. With that token, Q-Play calls the Power BI REST API to look up the report or dashboard in your workspace.
  3. Q-Play then calls the GenerateToken API to create a short-lived embed token with the access level View. An embed token is valid for about 60 minutes. Live jobs request a new one every 30 minutes, so the token never expires on screen.
  4. The screen embeds the content with the embed token. For screenshot jobs, Q-Play embeds and captures the content server-side, and only the image is sent to the screen.

What this means for you:

  • No user accounts are involved. There's no delegated sign-in, no stored user passwords, and nobody has to stay signed in.
  • Viewers and screens don't need a Power BI Pro or Premium Per User licence.
  • Q-Play has read-only access. Embed tokens are always created with the View access level, so Q-Play can't edit or delete anything in Power BI.
  • Access is controlled entirely on your side: by the tenant setting for service principals, by workspace role assignments, and, if you use your own app registration, by the client secret you issue and can revoke.

Requirements

  • A Power BI tenant (Microsoft Fabric / Power BI Service).
  • The content must be in a shared workspace. My Workspace is not supported.
  • For production use, the workspace must be assigned to a capacity: Power BI Embedded (A SKU), Power BI Premium (P SKU) or Microsoft Fabric (F SKU). On shared capacity (Pro workspaces), Microsoft limits the number of embed tokens a service principal can generate. These are meant for development and testing, and embedding stops when the limit is reached.
  • A Fabric administrator (Power BI administrator) who can change tenant settings.
  • A workspace admin who can manage workspace access.
  • If you use your own app registration: someone with permission to create app registrations in Microsoft Entra ID, and, if you'll use an effective identity, to grant admin consent for Microsoft Graph permissions.

With the live layouts, the players load Power BI directly, so your firewall must allow the players to reach the required addresses. For the exact addresses, see Security and protocols for Q-Play systems.

Most of the setup happens in the Power BI admin portal, the Power BI workspace and Microsoft Entra ID. If you don't have access to these yourself, send this guide to your IT department or Power BI administrator.


Permissions overview

WhereWhat is neededWhy
Power BI admin portal (tenant settings)Embed content in apps, enabled for the whole organization or for a security group that contains the service principalAllows Power BI content to be embedded in applications through the REST APIs
Power BI admin portal (tenant settings)Service principals can call Fabric public APIs (older name: Allow service principals to use Power BI APIs), enabled for a security group that contains the service principalAllows the service principal to authenticate and call the Power BI REST APIs
CapacityThe workspace is assigned to an A, P or F capacityRequired for production embedding. Shared capacity is limited to a small number of embed tokens for testing.
Power BI workspaceThe service principal has the role Member or AdminGives access to the reports, dashboards and datasets in the workspace, and allows embed tokens to be generated
Microsoft Entra ID, API permissionsNone for Power BI. Only Microsoft Graph Application.Read.All (application permission, admin consent) if you use your own app registration together with Apply an identity.Power BI access comes from workspace membership, not from API permissions. Graph is only used to look up the service principal's object ID.
On-premises data gateway (only if used)ReadOverrideEffectiveIdentity, or gateway admin, on the gateway data sourceRequired when an effective identity is passed to data that goes through a gateway


1. Enable embedding and service principals in the tenant settings

This step is done by a Fabric administrator (Power BI administrator).

Two tenant settings must be enabled. Both are found in the admin portal under Tenant settings, in the Developer settings section.

  1. Embed content in apps. This allows Power BI reports and dashboards to be embedded in applications such as Q-Play.
  2. Service principals can call Fabric public APIs. In older versions of the admin portal, it's called Allow service principals to use Power BI APIs. This allows a service principal to sign in and call the Power BI REST APIs.

Both settings can be enabled for the whole organization, or for specific security groups only. We recommend the security group approach:

  1. In Microsoft Entra ID, create a security group dedicated to Power BI service principals, for example "Power BI embedding - service principals".
  2. Add the service principal from step 2 to the group as a member.
  3. In each of the two tenant settings, choose Specific security groups, and add the group.

Service principals get access to every tenant setting they are enabled for. Limiting the settings to a dedicated group keeps the service principal's access to exactly what Q-Play needs.



Changes to tenant settings can take up to 15 minutes to apply.

For more details, see Microsoft's guides Developer admin settings and Embed Power BI content with a service principal.


2. Choose the service principal

Create a new Power BI Enterprise integration. In "Authentication type", choose which service principal Q-Play authenticates as:

OptionHow it worksWhen to use it
Authorize with MicrosoftA Global Administrator, or another admin who can grant tenant-wide consent, grants admin consent to NordicScreen's multi-tenant app. This creates a service principal (enterprise application) for NordicScreen's app in your tenant. NordicScreen manages the app's credentials.Most organizations. There are no credentials for you to manage or rotate.
Custom App RegistrationYou create your own single-tenant app registration in Microsoft Entra ID, and enter its Client ID, Client secret and Tenant ID in Q-Play. You own the app and its credentials.Organizations whose security policy requires their own app registration, full ownership of the credentials, or that don't allow consent to third-party multi-tenant apps.

Authorize with Microsoft

Choose Authorize with Microsoft and click Authorize. Sign in with an account that can grant admin consent for your organization, review the permissions, and accept.

When consent is granted, NordicScreen's app appears under Enterprise applications in Microsoft Entra ID. That's the service principal you add to the security group in step 1 and to the workspace in step 3. You can revoke access at any time by removing the enterprise application or its workspace access.

Custom App Registration

  1. In Microsoft Entra ID, create a new app registration. Single tenant is fine. No redirect URI is needed.
  2. Under Certificates & secrets, create a client secret and copy its value. The value is only shown once.
  3. On the app's Overview page, copy the Application (client) ID and the Directory (tenant) ID.
  4. In the integration, enter them in "Client ID", "Client secret" and "Tenant".

You don't need to add any Power BI API permissions. Access to Power BI is granted through workspace membership in step 3.

If you'll use Apply an identity in step 6, add the Microsoft Graph application permission Application.Read.All to the app, and grant admin consent.

Client secrets have an expiry date. Make a note of it, and create a new secret and update it in the integration before the old one expires. If the secret expires, every job fails at authentication.

For how to create an app registration, see Microsoft's guide Register an application in Microsoft Entra ID.


3. Prepare the workspace

This step is done by a workspace admin in Power BI.

Assign the workspace to a capacity

For production use, the workspace must be assigned to a Power BI Embedded (A SKU), Power BI Premium (P SKU) or Microsoft Fabric (F SKU) capacity. You do this in the workspace settings, where you choose the workspace's license mode and capacity. You need to be workspace admin, and have permission to assign workspaces to the capacity.

If the workspace stays on shared capacity, the integration works for testing, but stops when Microsoft's limit on embed tokens is reached. For more details, see Microsoft's guide Move your Power BI embedded analytics app to production.

Grant the service principal access

  1. Open the workspace in Power BI.
  2. Click Manage access, then Add people or groups.
  3. Search for the service principal. With Authorize with Microsoft, search for NordicScreen's app. With Custom App Registration, search for the name of your own app registration. You can also add the security group from step 1.
  4. Assign the role Member or Admin. Viewer and Contributor are not enough to generate embed tokens.

Repeat this for every workspace you want to show on your screens. The service principal only has access to the workspaces you add it to.


4. Find the workspace and item IDs

Every job needs the Workspace ID (group ID) and the ID of the report or dashboard. You find them in the address bar of your browser when the item is open in Power BI.

For a report:

https://app.powerbi.com/groups/[Workspace ID]/reports/[Report ID]/[Page ID]

For a dashboard:

https://app.powerbi.com/groups/[Workspace ID]/dashboards/[Dashboard ID]

Each ID is the part between two slashes. For example, in this address:

https://app.powerbi.com/groups/3f2a1c4e-0b7d-4e19-9a6c-2d5e8f1b7a90/reports/8c1d4b2e-6f3a-4a7d-b5e2-1f9c0d3a6e47/ReportSection1a2b3c

  • The Workspace ID is 3f2a1c4e-0b7d-4e19-9a6c-2d5e8f1b7a90
  • The Report ID is 8c1d4b2e-6f3a-4a7d-b5e2-1f9c0d3a6e47
  • The Page ID is ReportSection1a2b3c

To get the right Page ID, open the report on the page you want to show before you copy the address.


5. Set up the jobs

Each way of showing Power BI has its own job in the integration. Add a job for each report or dashboard you want to show, and fill in its fields.

JobFieldsRefresh
ReportWorkspace ID, Report IDEvery 30 minutes, fixed, so the embed token never expires
DashboardWorkspace ID, Dashboard IDEvery 30 minutes, fixed, so the embed token never expires
Report ScreenshotWorkspace ID, Report ID, Page ID, Report width and Report height in pixels (1920 × 1080 by default)Every 5 min, 15 min, 30 min or 1 hour
Dashboard ScreenshotWorkspace ID, Dashboard ID, Dashboard width and Dashboard height in pixels (1920 × 1080 by default), Dashboard fitment (Fit to width or Actual size)Every 5 min, 15 min, 30 min or 1 hour


For the screenshot jobs, set the width and height to the same shape as the area the app fills on your screen, so the picture isn't stretched. For a full 16:9 screen, use 1920 × 1080. For a 9:16 (portrait) screen, use 1080 × 1920.


6. Configure the data identity for row-level security

Every job has a "Data identity" setting, which controls the effective identity passed in the embed token. Leave it on None (no row filtering) unless the semantic model (dataset) uses row-level security (RLS), or connects live to a source that requires an identity.

SettingWhat it does
None (no row filtering)No effective identity is passed. The service principal sees all data in the report. Use this when the semantic model has no RLS.
Apply an identity, Service principalThe service principal's own object ID is passed as the identity. Required for some live connections, for example to Azure Analysis Services.
Apply an identity, Effective identityShows the data as a specific user would see it. Enter the user's username (UPN or e-mail address). Use this for dynamic RLS based on USERPRINCIPALNAME().
RLS role (optional)A role defined in the semantic model, applied on top of the identity.
Custom data (optional)A value the semantic model can read with CUSTOMDATA(), for example a department or customer number.
Dataset ID (dashboards only)A dashboard can use several semantic models, so you must enter the ID of the one the identity applies to.

If the semantic model uses an on-premises data gateway, the service principal also needs the ReadOverrideEffectiveIdentity permission, or gateway admin, on the gateway data source. Without it, Power BI refuses the embed token with a 403 error.

For more about RLS in embedded scenarios, see Microsoft's guide Row-level security with embedded content.


7. Run the jobs and add the app

Save each job, and run it manually the first time. After that, it runs on its refresh schedule. See Working with integrations in Q-Play for how to run a job and how to read its log.

When the job has run, add the Power BI Enterprise app to a slide to show the report or dashboard on your screens. See Power Bi Enterprise app.


Checklist

If a job doesn't work, go through this list:

  1. Embed content in apps and Service principals can call Fabric public APIs are both enabled, and cover the service principal or its security group (step 1). Without them, every job fails at authentication or with a 401 error.
  2. The service principal is a Member or Admin of the workspace (step 3). Viewer is not enough.
  3. The workspace is assigned to an A, P or F capacity. On shared capacity it works for testing, and stops when Microsoft's embed token limit is reached.
  4. The Workspace ID and the report or dashboard ID come from the same workspace. A report ID from another workspace gives a "not found" error.
  5. The content isn't in My Workspace.
  6. If you use Custom App Registration: the client secret hasn't expired, and the Client ID and Tenant ID are correct.

Troubleshooting

What you seeLikely causeWhat to do
The job fails with 401 or UnauthorizedThe tenant setting is off or doesn't cover the service principal, the service principal isn't in the workspace, or the client secret has expired.See items 1, 2 and 6 in the checklist.
The job fails with 404 or not foundThe Workspace ID or the report or dashboard ID is wrong, or the item has been deleted or moved.Copy the IDs again from the address bar (step 4).
The job fails on the embed token with 403The workspace isn't on a capacity and the embed token limit is reached, or the semantic model requires an effective identity.Assign the workspace to a capacity, and check the Data identity setting (step 6).
A 403 error that mentions gateway admin or effective identityAn effective identity is passed to a semantic model that uses an on-premises data gateway.Give the service principal ReadOverrideEffectiveIdentity on the gateway data source.
The report shows no data, or "You don't have access"The semantic model uses RLS, and the job's Data identity is set to None.Set Data identity to an identity that has access (step 6).
A live report or dashboard stays blank on the screenThe player can't run the Power BI JavaScript client, or the firewall blocks the player from reaching Power BI.Check that the required addresses are allowed (see Requirements). If they are, use a Report Screenshot or Dashboard Screenshot job instead.
The screenshot shows the wrong pageThe Page ID is wrong.Open the report on the right page, and copy the last part of the address again (step 4).
The screenshot looks stretchedThe job's width and height don't match the shape of the app on the screen.Set the job's width and height to the shape of the screen (step 5).