The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Greeting lovely member,
Well im trying to run some Power BI REST API on python.
i would like to run the Admin API ones . so i created an application i gave it tenant access (Tenant.Read.All)
but im still having an 403 error .
so my main question here is , can we run the AsAdmin APIs via service account, without granting it Power BI tenant admin.
Thanks in advance.
Solved! Go to Solution.
Hello Ibarrau ,
i found the issue to my problem :
Actually thanks to your Link , i notice that when you create an application you need to make sure the app you use doesn't have any Power BI admin roles set on it in Azure portal. (Such as Tenant.Read.All)
Best regards
Rami Frikha
First Thanks for your Reply ,
i already set up the power BI admin portal thing. im using Azure.identity to connect.
but im keeping getting the 401 error.
Do you think i need to grant it the power BI tenant admin ?
Thanks
Hi there. Let me ask you something. After setting the application permission for All Tenant, has the Global Admin granted those permissions for the app? Once that's done a Power Bi Admin can use the API.
On the other hand if you wnat to use the app with Service Principal, you need to configure additional things on the Power Bi Admin Portal like this: https://docs.microsoft.com/en-us/power-bi/admin/read-only-apis-service-principal-authentication
After the configuration wait for a few minutes while microsoft apply the change.
Just for the heads up there is a python library in development that has the admin requests. Check it out if you are able to login https://blog.ladataweb.com.ar/post/669293533988012032/librería-de-python-para-power-bi-rest-api
I hope that helps,
Happy to help!
Hello Ibarrau ,
i found the issue to my problem :
Actually thanks to your Link , i notice that when you create an application you need to make sure the app you use doesn't have any Power BI admin roles set on it in Azure portal. (Such as Tenant.Read.All)
Best regards
Rami Frikha
User | Count |
---|---|
43 | |
14 | |
13 | |
13 | |
9 |
User | Count |
---|---|
50 | |
38 | |
24 | |
22 | |
18 |