Forum Discussion
Anonymous
4 years agoNot applicable
403 error message while trying to hit PBI API (I am able to get the token)
Hi All! I am tryng to user the new service proncipal profile feature in order to publish datasets on multiple tenents using PBI API. I created an app registration, Azure AD group for the service pr...
- 4 years ago
The AAD token you are generating in
GetServicePrincipalToken
is not set with the right audience
make sure the token you are using is with the right audience for powerbi API's "https://analysis.windows.net/powerbi/api"
mshmordok
Microsoft Employee
4 years ago1. Did you manage to make any other calls to PowerBI with the specified App
For example try to call
https://docs.microsoft.com/en-us/rest/api/power-bi/groups/create-group
If not that could indicate some miss configuration os your app or the aquired token
2. Try to enable the Profiles feature to the entire org and see if that solve the problem
3. If issue still not resolved then add the requestId from the Create Profile API 403 reponse to this thread so we can try track the failure