Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am trying to execute a query to get a table out of a dataset using Azure Data Factory web activity. I am using the following documentation:
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries-in-group
The following API call:
POST https://api.powerbi.com/v1.0/myorg/groups/{groupID}/datasets/{datasetID}/executeQueries/
Body: {
"queries": [
{
"query": "EVALUATE VALUES('{table name}')"
}
],
"serializerSettings": {
"includeNulls": true
},
"impersonatedUserName": {myAdmin@Email.com}
}
Authentication: System Assigned Managed Identity
Resource: https://analysis.windows.net/powerbi/api
Returns the following error: {"error":{"code":"PowerBINotAuthorizedException","pbi.error":{"code":"PowerBINotAuthorizedException","parameters":{},"details":[],"exceptionCulprit":1}}}
However, the API call below does execute successfully:
POST https://api.powerbi.com/v1.0/myorg/groups/{groupID}/datasets/{datasetID}/refreshes/
body: {
"retryCount": 0
}
Authentication: System Assigned Managed Identity
Resource: https://analysis.windows.net/powerbi/api
As far as I am aware, I have enabled all necessary permissions in the admin portal of app.powerbi.com. If the POST call to refresh a dataset is working, I do not know why the executeQueries API call is not working.
Is there something I am missing about permissions in the workspace in app.powerbi.com?
Do you have "Build" permissions against the semantic model?
Yes. Both the Data Factory and the impersonatedUserName have Workspace Admin and All Permissions Granted.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |