Forum Discussion
ajaynathreddy
1 year agoNew Member
I’m trying to programmatically retrieve Power BI report subscription details using the Admin API end
I’m trying to programmatically retrieve Power BI report subscription details using the Admin API endpoint: GET https://api.powerbi.com/v1.0/myorg/admin/reports/{reportId}/subscriptions?$expand=users...
- 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)
Akash_Varuna
Super User
1 year agoHi ajaynathreddy The 401 error may occur if permissions or setup steps are incomplete. Ensure your Azure AD app has Tenant.Read.All permission, and admin consent has been granted. Verify the service principal has the appropriate role in Power BI Admin Portal (e.g., Service Administrator).