Forum Discussion
REST API - DataflowUnauthorizedError - You do not have permissions to manage this dataflow
- Anonymous2 years ago
Managed to solve it!
In the question I mentioned that I can't GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows from a specific {groupId}, it is because I don't have access to that workspace, somehow I did get that workspace from /admin scope. So when I tried to access https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/transactions it gives me the DataflowUnauthorizedError.Conclusion, I had to add the registered app to the workspace and have the Data.Flow.Readall scope.
Managed to solve it!
In the question I mentioned that I can't GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows from a specific {groupId}, it is because I don't have access to that workspace, somehow I did get that workspace from /admin scope. So when I tried to access https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/transactions it gives me the DataflowUnauthorizedError.
Conclusion, I had to add the registered app to the workspace and have the Data.Flow.Readall scope.