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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.