Forum Discussion
Error while calling POWER BI REST API without USER-ID and PASSWORD
try follow this article https://pivotalbi.com/automate-your-power-bi-dataset-refresh-with-python/
"The Power BI REST API only supports delegated permissions. That means that you need to run any calls to the REST API in the context of a user"
Thanks AlexanderTikh for the reply,
I find this blog already but the thing is that by using the token returning from using service principel is working but there are some limitations while we calling API onto PowerBi.
- Anonymous5 years agoNot applicable
I had the same error
{'error': {'code': 'PowerBINotAuthorizedException', 'pbi.error': {'code': 'PowerBINotAuthorizedException', 'parameters': {}, 'details': [], 'exceptionCulprit': 1}}}
it was problem with adding correct permission to service principal, should be like described in docs, in my case I had to add Delegated type of permissons.