Forum Discussion
Rest API with Service Principal - Can't get past Error 403
- 4 years ago
Thank youAnonymous and AmosHersch for your answers but they are incorrect.
As a matter of fact, using the C# connector (https://github.com/microsoft/PowerBI-CSharp) with the exact same configuration, I am able to correctly carry through with the requests on all operations needed (so far Get groups, Get/Post Datasets, Post Rows in Datasets). It seems to be an issue with Postman authentication flow of some sort but I do not have time to investigate further as of now.
Hi risDS ,
I can't tell for sure, but I guess "Tenant.ReadWrite.All" isn't enough, it might be confusing but it doesn't contain all other scopes. For example if a certain API requires "Report.ReadWrite.All" then it will fail for you.
Each API has it's specific scopes requirement, and if the scope is missing from the token the API will fail.