Onkar Ravgan 608bf51b6a
Added non admin apis support for PowerBI (#10910)
* Added non admin apis support

* addressed review comments
2023-04-04 18:25:48 +05:30

1.8 KiB

title slug
PowerBI Account Setup /connectors/dashboard/powerbi/powerbi-account-setup

PowerBI Account Setup

Requirements

  • PowerBi Pro license is required to access the APIs

Step 1: Create an Azure AD app and configure the PowerBI Admin consle

Please follow the steps mentioned here for setting up the Azure AD application service principle and configure PowerBI admin settings

Login to Power BI as Admin and from Tenant settings allow below permissions.

  • Allow service principles to use Power BI APIs
  • Allow service principals to use read-only Power BI admin APIs
  • Enhance admin APIs responses with detailed metadata

Step 2: Provide necessary API permissions to the app

Go to the Azure Ad app registrations page, select your app and add the dashboard permissions to the app for PowerBI service and grant admin consent for the same: Compulsory Permissions:

  • Dashboard.Read.All
  • Dashboard.ReadWrite.All

Optional Permissions: (Without granting these permissions, the dataset information cannot be retrieved and only the lineage processing will be excluded)

  • Dataset.Read.All
  • Dataset.ReadWrite.All

Make sure that in the API permissions section Tenant related permissions are not being given to the app Please refer here for detailed explanation

Step 3: Create New PowerBI workspace

The service principal only works with new workspaces. For reference