Forum Discussion
marcio_fornari
6 years agoResolver I
Power BI API return 401 Unauthorized` response
Hello Everybody, I have a problem with a Power BI API First i get the Token: $url = 'https://login.windows.net/' . $directoryIdAzure . '/oauth2/token'
/** @var GuzzleHttp\Cl...
- 6 years ago
I Solved my problem.
I change
'grant_type' => 'client_credentials',
to
'grant_type' => 'password',
and I had to disable Security Defaults in the Azure
Azure Portal > Azure AD > Properties > Click on Manage Security Defaults link > Toggle Enable Security Defaults button to NO.
I hope thats help anyone.
spatialcase
2 years agoNew Member
You also need to enable use of the Fabric API within the Developer settings of your Power BI tenant. See ths link for details: https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal