Forum Discussion
MikeFleming
2 years agoRegular Visitor
Recieving (403) Forbidden when Accessing Dataset via API
I am getting an error when accessing dataset via API. This was previously working but I suspect someone made some changes to that dataset. However, I know that both the service principle and the...
ibarrau
2 years agoSuper User
Hi. Usually the 403 for Power Bi Rest API means the token hasn't priviledges for the operation because of a missing permissiong. 403 is the forbidden action. Please check that the Registered App (Service principal) is member of the workspace where the dataset is hosted. Otherwise, the Service Principal can't read the dataset.
In addition, remember that the App registered should have Dataset.ReadWrite.All or Dataset.Read.All permissions at its permission properties in Azure.
I hope that helps,
- MikeFleming2 years agoRegular Visitor
Thanks. The service principal is Admin on that workspace. As is the impersonating user.