Skip to main content

Power BI Service Principal

Host Admin Administrator

A Power BI Service Principal is the identity of an application registered in Microsoft Entra ID (Azure AD). It allows DataCentral to authenticate and interact with the Power BI Service programmatically, without requiring a user's personal credentials.

Adding your own Power BI Service Principal provides several benefits:

  • Embedding without Power BI Pro licenses: Reports can be shown to users who do not have their own Power BI Pro license, such as User Pass, Mobile ID, and OTP users, or Entra ID users without a Pro license. This is known as "App Owns Data" embedding.
  • Fallback for Entra ID users: If an Entra ID user does not have access to the workspace a report is embedded from, DataCentral can embed the report through the Service Principal instead. (This applies to tenants using at least the Authentication + Power BI level of the Authentication Service Principal. With Authentication only, Entra ID users always view reports through the Service Principal.)
  • Features: Several DataCentral features, such as Tasks, Smart RLS, and exporting report pages, rely on the Service Principal.

Required Azure Roles​

To register an application in Entra ID, your account must have one of the following roles:

  • Application Administrator
  • Cloud Application Administrator
  • Global Administrator

Enabling the tenant settings in step 2 also requires Power BI (Fabric) administrator rights.


1. Register an Application in Entra ID​

  1. Log in to the Azure portal.
  2. Navigate to Microsoft Entra ID > App registrations.
  3. Click New registration.
  4. Fill in the required information:
    • Name: Enter a name for the application (e.g., DataCentral Power BI Access).
    • Supported account types: Select Accounts in this organizational directory only (Single tenant).
    • Redirect URI: Leave this empty.
  5. Click Register.
  6. Copy the Application (client) ID and the Directory (tenant) ID from the Overview tab. You will need these later.
  7. Go to Certificates & secrets and click New client secret.
  8. Add a description, set an expiration according to your organization's policy, and click Add.
  9. Copy the secret Value immediately. It is hidden as soon as you leave the page and cannot be viewed again.
Do not add API permissions

The app registration does not need any API permissions. Do not add Power BI Service permissions (delegated or application) and do not grant admin consent for them.

The Service Principal gets its access from the Power BI tenant settings and its workspace membership (steps 2 and 3), not from API permissions. Microsoft recommends avoiding permissions on this app: they are never used and can cause errors that are hard to troubleshoot.

2. Configure Power BI Tenant Settings​

  1. Log in to Power BI as a Power BI Administrator.
  2. Go to the gear icon > Admin portal > Tenant settings, and scroll down to Developer settings.
  3. Enable the following two settings:
    • Embed content in apps
    • Service principals can call Fabric public APIs
  4. Click Apply on each.

Power BI Admin portal Developer settings with Embed content in apps and Service principals can call Fabric public APIs enabled

Each setting can be enabled for the entire organization or only for specific security groups. If you use a security group, create a security group in Entra ID, add the Service Principal to it as a member, and select that group in both settings. Scoping to a security group is recommended, as service principals have access to every tenant setting they are enabled for.

3. Grant Workspace Access​

The Service Principal can only access reports, dashboards, and semantic models in workspaces where it is a Member or Admin. Add it to every workspace whose content you want to embed in DataCentral or use with DataCentral features.

  1. In Power BI, open the workspace and select Manage access (shown as Workspace access in the workspace's More menu).

    Power BI workspace with Manage access highlighted

  2. Search for the Service Principal by the display name of your app registration. Alternatively, add a security group that contains the Service Principal.

  3. Select Member or Admin. Member is the minimum role required.

  4. Click Add.

    Adding the Service Principal to the workspace with the Member role

Note: A personal My Workspace cannot be used with a Service Principal.

4. Configure DataCentral​

  1. In the host environment or tenant where the configuration should apply, navigate to Administration > Settings > Azure Configurations and go to the Power BI settings section.
  2. Enter the following values from your App Registration:
    • Directory (Tenant) ID
    • Application (Client) ID
    • Client Secret
  3. Click Save.
  4. Click Test configuration to verify the credentials immediately. A successful test confirms that DataCentral can authenticate with the supplied tenant ID, client ID, and client secret. If the test fails, review the displayed error and correct the credentials or Azure settings before importing content.

DataCentral is now authorized to access and embed reports from your Power BI workspaces. To verify, navigate to Administration > Power BI Items and select Manage Workspaces. The workspaces the Service Principal has access to should be listed.

Only use Service Principal to manage items and workspaces​

When Only use Service Principal to manage items and workspaces is enabled, DataCentral manages workspaces and items exclusively through the Service Principal. Manage Workspaces then only shows workspaces the Service Principal has access to, and administrators' own Entra ID accounts are not used to list or add workspaces.

When it is disabled, workspaces are managed through the signed-in administrator's Entra ID account. This requires the tenant to use the Authentication + Power BI level (or higher) of the Authentication Service Principal, since DataCentral needs the administrator's Power BI permissions to list their workspaces.

Multiple Power BI Service Principals​

A tenant can have up to three Power BI Service Principals. The host environment supports one. Additional Service Principals can be used to embed content from other Azure tenants or to provide redundancy. Create and configure each one as described above, then enable it in the tenant's Azure Configurations.

If two or more Service Principals have access to the same workspace, you can choose which one DataCentral uses for that workspace in Manage Workspaces.

Client secret expiry

The client secret expires on the date you chose when you created it. Create a new secret before then and update it in Azure Configurations, or DataCentral loses access to your Power BI content.


Further Reading​

If you want to read more, see Microsoft's official guide: Embed Power BI content with service principal and an application secret.