Forum Discussion
Power BI Rest API Connect Power BI Service Account Exception
Hi Team,
I am using the below code to connect one of the service account but getting the error. When I use my own credentials, it's working fine.
Can anyone help me to solve this?
Thanks,
Niket
3 Replies
- GilbertQSuper User
Hi talatiniket
Can you please ensure that you have got the service principal created correct as per the blog post below?
Using the Power BI Scanner API to Manage Tenant's Entire Metadata -
Before starting, you must have already completed the following in order to use the Scanner API at all. Please see the documentation for each to set up:
- Enable Service Principal Authentication for Read-Only Admin API’s
- Create an Azure AD app
- Ensure there are no Power BI admin-consent required permissions on the application
- Create a client secret / key and copy the value for later use
- Create a new Security Group in AD, add the app to the group
- Enable Allow Service Principals to use read-only Power BI admin API’s in the Power BI Tenant
- talatiniketFrequent Visitor
Hi GilbertQ ,
Thanks for your response. I am trying without using Service Principal as our admin team is not allowing it. As I have mentioned earlier, if I use my MS account, it's working fine but issue is only with service account.
Thanks,
Niket
- GilbertQSuper User