Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hi,
I have a service principal associated to a security group and successfully added on tenant settings:
I am able to get at token and get all datasets but I am unable to refresh a dataset. The relevant service principal has admin permissions in the workspace
This service principal has Dataset.ReadWrite.All permissions under AAD so what am I missing?
This is what I get when I try to refresh (not working):
This is what I get when I list (working)
Any help would be appreciated.
go to jwt.io and check if your token truly has dataset.readwrite scope.
Thanks for the answer. How do I figure out if the token has those permissions?
Do you have a scp (scope) section?
No. What should the scope be?
I didn't pass it to the api call when generating the token either... so the issue might be there.
You need to request dataset read write during the app registration.
during the app creation
Hi, thanks a lot for the answer. Please see a screenshot of the api permissions. Should this be applied anywhere else?
Looks good. You need to figure out why it is not coming through to the scp (scope) section of the token.
Thanks really appreciatd for all the support. Any idea on what should I put here in scope (if anything)?
either all (so you get the ones you defined in the registration) or Dataset.ReadWrite.All if you want to limit the options for that particular session.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 |