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,
As AmosHersch said, the tenant permission may not be suitable for all API usages. They will also require the contents level permissions.
For example, the dataset API requires the permissions of the dataset, the report API will require the report permissions. You can find these additional requrenmenmt in the detailed API page 'scope' part.
BTW, they may also require additional permissions or be limited used due to connection mode when you work on particular data sources. (e.g. Azure AS)
Regards,
Xiaoxin Sheng