Struggling to enable the PowerBI REST API to work, receiving "API is not accessible for application" as a response

Mathews, Miles 0 Reputation points
2024-09-19T16:10:28.03+00:00

I followed this guide here: https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#create-a-security-group-manually, but to sum up the steps I followed here:

  1. Created an App with simple Report.ReadAll and Report.ReadWriteAll permissions to test access to PowerBI REST API with a sample workspace with a single report.
  2. Created a simple Security Group with the App as a Service Principal.
  3. Enabled content & access for Service Principals on the PowerBI workspace.
  4. Added the Security Group & App as Admin for the PowerBI workspace as admins.

Following these steps, I just used a simple python notebook to work with the App ID, Tenant ID, & Secret. I used the MSAL library to generate the token, which works on the API on the website, but I am receiving Error 403: 'API is not Accessible for application'.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,082 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.