Forum Discussion
Anonymous
2 years agoNot applicable
REST API - DataflowUnauthorizedError - You do not have permissions to manage this dataflow
I'm following this document, https://learn.microsoft.com/en-us/rest/api/power-bi/dataflows/get-dataflow-transactions , t So, I'm accessing this dataflow transactions endpoint https://api.powerbi.com...
- 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.
lbendlin
2 years agoSuper User
Check your token at jwt.io - it may be missing the required scope.
Anonymous
2 years agoNot applicable
So just to break down, I request the token with this info
{
'grant_type': 'client_credentials',
'login_url': 'https://login.microsoftonline.com/{tenant_guid}/oauth2/v2.0/token',
'scope': 'https://graph.microsoft.com/.default'
}I believe the scope is automatically resolve?