Forum Discussion
Power Bi Api issue
- Anonymous8 months ago
Hi Anonymous,
Thank you for posting your query in Microsoft Fabric Community Forum. Also, thanks to nielsvdc , lbendlin for those inputs on this thread.This usually happens when using client ID and secret. Workspace and report APIs work, but dataset APIs need some extra permissions. Please check if service principal access is enabled in Power BI Admin Portal and that your app has dataset permissions with admin consent. Also make sure the service principal is added to the workspace and you are calling the group-level dataset APIs.
After this, the dataset refresh and datasource APIs should work.
please go through with the below document hope it may resolve your IssueEmbed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Learn
Enable service principal authentication for admin APIs - Microsoft Fabric | Microsoft Learn
Hope the above provided information help you resolve the issue, if you have any further concerns or queries, please feel free to reach out to us.Regards,
community Support Team.
Check the requested permissions in your app registration. Sounds like the scope is insufficient.