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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.