Yesterday I was trying to setup a flow that would export datasets and datasources from those datasets from our Power BI reports.
We've already setup a Custom connector for PBI Rest API that is working just fine, some items use regular PBI accounts and others use the ADM accounts.
The problem I am facing is that whenever I try to test the GetDatasourcesAsAdmin call, I get an unauthorized message. Which is weird because firstly, it works in documentation page (Admin - Datasets GetDatasourcesAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Docs) but also because the other Admin commands works just fine - for example the GetDatasetsasAdmin which I'm running prior to this is working fine. It is just this action that is not working correctly.
The returned headers:
As far as I can tell it should be setup correctly and similarly to the other call which are working just fine.
I've already tried removing it and adding it again - updating the connector but without any luck.
Bump Anyone able to help out with this? Still haven't found a solution...
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.