Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello, we need to use the Power BI API in order to get metadata about data refresh from an external app.
It looks like the only valid authentication method is through delegated permissions, but for security reasons, we can't have a single user with access to every workspace in the company.
Anybody knows if there is any other authentication method to get metadata of every dataset in the company without a generic user with access to all workspaces?
Thank you!
Solved! Go to Solution.
Finally, our approach was to create a service principal in Azure.
Use Azure service principals with Azure PowerShell | Microsoft Docs
Finally, our approach was to create a service principal in Azure.
Use Azure service principals with Azure PowerShell | Microsoft Docs
Hi @Anonymous ,
" I wonder if we could create a user with access to ALL datasets, but with no access to power bi service. So that this user can only access to the dataset throught the API."
I suddenly thought that maybe you can use O365 administrator account to get Audit log instead of API.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-lionel-msft, thank you so much for your support. Finally, it seems that we found the solution creating a "service principal" in Azure.
Hi @Anonymous ,
“Anybody knows if there is any other authentication method to get metadata of every dataset in the company without a generic user with access to all workspaces?”
If the current account does not have the build permission of the dataset, it is impossible to obtain the dataset through the API. So your idea cannot be realized. You may need different accounts to obtain the corresponding data set information, and then merge them.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-lionel-msft,
Thanks for your answer, I really appreciate your point of view and we will evaluate the approach of using several accounts and merge the data.
In order to explore all the possibilities, I wonder if we could create a user with access to ALL datasets, but with no access to power bi service. So that this user can only access to the dataset throught the API.
Thanks for your support!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 2 | |
| 2 |