Forum Discussion
Mosaic_pedro
1 year agoNew Member
Access Denied for Power BI REST API Querying Dataset with Dataflows as Data Source
I'm trying to query a specific Power BI dataset using the REST API and a Python script with a service account for authentication. However, I'm encountering an "Access Denied" error for this particul...
Mosaic_pedro
1 year agoNew Member
lbendlin Thanks for you reply.
In fact scp is not in the token (i am comparing with the access token generated by microsoft learn for testing the api with my personal account). Not really sure how to fix it since i am already setting the scope
https://analysis.windows.net/powerbi/api/.default when requesting the access token therefore, i can't find what i would need to change to fix it.
But assuming this would be the issue, it's hard to me the wrap my head around the fact that this same token can query other datasets from the same workspace and is even used to embed a report that uses this same dataset. Correct me if i am wrong, but user access is set at the workspace level right? So if this SA can access one should be able to have access to all.
Thanks for the help
- lbendlin1 year agoSuper User
Redo the app registration without delegating.