Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
niranjanbn19
New Member

Dataset access through REST API without workspace access

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

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @niranjanbn19 ,

 

Restrictions according to the official documentation:

The user must have Manage dataset access permissions.

vyangliumsft_1-1691115743908.png

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.

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @niranjanbn19 ,

 

Restrictions according to the official documentation:

The user must have Manage dataset access permissions.

vyangliumsft_1-1691115743908.png

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors