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

Join 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.

Reply
Jotav93
Regular Visitor

Refreshing dataset using API not working (list datasets does work)

Hi,

 

I have a service principal associated to a security group and successfully added on tenant settings:

 

Jotav93_0-1714068186937.png

 

 

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

Jotav93_1-1714068295936.png

 

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):

Jotav93_2-1714068433325.png



This is what I get when I list (working)

Jotav93_3-1714068481620.png

 

Any help would be appreciated.

 

11 REPLIES 11
lbendlin
Super User
Super User

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?

Jotav93_0-1714112830273.png

 

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.

Jotav93_0-1714129523308.png

 

You need to request dataset read write during the app registration.

Sorry what do you mean by app registration duing the app creation in Azure Portal or in the get token API call?

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?

Jotav93_0-1714405846928.png

 

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)?

Jotav93_0-1714406211853.png

 

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.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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