Forum Discussion
Anonymous
7 years agoNot applicable
How to disable multi factor authentication to use POwer BI REST API
Hi, I am running a powershell script to get the refresh history of all pbi reports of respective workspaces. Problem: I need to run the script manually, I mention here manually because whenever ...
Anonymous
6 years agoNot applicable
Have you tried using Service Principal/App Registration via AAD? Make sure you assign PowerBI API Permissions for the registration and then you can get an access token for the registration
piper
6 years agoFrequent Visitor
Thanks for reply.
Yes, I had tried out service principal way earlier, when didn't have powerbi pro account. And, it hadn't work earlier.
Which is why, I had purchase powerBI pro.
I don't recall the actual error now, but somewhere it was related to not able to generate access token.
For now, I got unblocked by disabling multi factor authentication using following: