Forum Discussion
Post Import through REST API using Service Principal
Hi ,
Before import have you accessed, ADMIN Power BI rest API's via service principal... can you help me out. I am able to generate token but not able to process. it gives unauthorized access.
Thanks and Regards
- Jayendran6 years agoSolution Sage
Hi Anonymous ,
It's the limitation of the Service Prinicpal
- Anonymous6 years agoNot applicable
Hi Jayendran,
Thanks for the response. Just wanted to know, when we are trying to get data from Power BI admin rest API's through postman method, we are able to view it and access it. So if its sevice principle then ideally it should not give in postaman method as well, but its giving. But its not working for Visual studio. can you please give the code image here. or whole visual studio code if possible.
Thanks
Rashmi raut
- Jayendran6 years agoSolution Sage
Hi Anonymous ,
Pls see some reference from below links
https://github.com/gbrueckl/PowerBI.API.Client/blob/master/SampleApplication/Program.cs