Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I want to execute queries on a dataset using REST APIs but I don't have workspace permissions. Can I execute queries using REST APIs how I am doing it on PowerBI desktop and refresh the dataset in browser?
I got 401 with PowerBINotAuthorizedException when I tried to get a dataset using below endpoint. But getting information about the refresh.Please let me know if I can use any other endpoint or I am missing any permissions.
Not working: https://api.powerbi.com/v1.0/myorg/groups/{groupid}/datasets/{datasetid}
Working: https://api.powerbi.com/v1.0/myorg/groups/{groupid}/datasets/{datasetid}/refreshes?$top=10
Solved! Go to Solution.
Hi @niranjanbn19 ,
Restrictions according to the official documentation:
The user must have Manage dataset access permissions.
Refer to:
Datasets - Execute Queries In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
If you don't have workspace permissions, you can try giving user permissions in dataset.
Manage dataset access permissions - Power BI | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @niranjanbn19 ,
Restrictions according to the official documentation:
The user must have Manage dataset access permissions.
Refer to:
Datasets - Execute Queries In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
If you don't have workspace permissions, you can try giving user permissions in dataset.
Manage dataset access permissions - Power BI | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.