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.
Hi Anonymous, can you explain more about what you are doing and trying to accomplish with API. Are you trying to connect to the API from within Fabric using a notebook or from an Azure resource of from some other application? Share the particular API that you are using. Then we have more information to give you a proper answer to your problem.
Using power bi api i am fetching workspace, reports , datasources, refresh schedule, refresh history data.