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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
toniacheung
Frequent Visitor

Power BI REST API query against dataset error

I am trying to use the Power BI REST API through PowerApps to query a Power BI dataset.  It works fine for me and for another person who had contributor access to the workspace that the Power BI data set is in, but it's not working for other users.  The dataset has RLS active, I'm assigned the role in RLS that lets me view everything.  The other users have workspace access and build access to the dataset, and the query is set up with me as the impersonatedUserName.  But they get an error that PowerBEntityNotFound, cannot query the dataset by using the REST API because the dataset was not found or you do not have the required permissions.  This exact setup with user permissions--(Workspace Viewer, Build (app)) with impersonatedusername as someone assigned the RLS role--is working for a different app that is querying a different dataset in the same workspace.  I don't know what else to try to get this to work.  From what I read, this should be working.  Any ideas?

 

 

1 REPLY 1
lbendlin
Super User
Super User

My understanding is that the PowerApps user has to have a workspace role above Viewer. This also means that RLS will be ignored.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.