Forum Discussion
I’m trying to programmatically retrieve Power BI report subscription details using the Admin API end
- 1 year ago
Thanks for information, The Admin API worked when we "Enable service principal to access powerbi API" and Application permission in Azure portal for PowerBI service should not have Application based permission. Worked for me after I revoked admin consent for below permission.
--->Tenant.Read.All(Should not be Application type and Revoke admin consent)
Hi ajaynathreddy Ensure the app has the Power BI Service Admin role explicitly assigned in Azure AD, as adding it to a security group alone doesn’t grant this role. Verify that the security group is enabled for API access in the Power BI Admin Portal. Double-check the Tenant.Read.All permission with admin consent. Retry the API call using a valid token with the appropriate scope.
Yes I can confirm the security group is enabled to access the admin api in powerbi admin portal, and in azure ad given application permissions: Tenent.Read.All(both application and delegated type) and Tenent.ReadWrite.All(Application type) with admin consent granted. But did not give the application powerbi service admin role via Azure AD. I will ask my admin for it. Thanks.