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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Working API calls with service principal & data set refresh in postman

Hi,

 

I'm freaking out here - what a hell of a mess in the documentation. I wasted hours in trying to get an working example in postman for authenticating with a service principal and doing a simple refresh on a dataset 😞


Did anyone achieved it? Any working examples would be highly appreciated...

 

What we have done so far:

 

- Created Application

- Created service principal

- Enabled the feature in preview, added the group in which are service p. belongs

- Created workspace, added the security group (admin)

 

How do I now get the token in postman in order to use it in the next call?

4 REPLIES 4
Anonymous
Not applicable

Ok, i'm getting one step closer. I managed to get the access token by using our tenant ID in the oauth call and using the client id (application id) together with our secret:

 

bearer.png

 

I tried to do now a simple statement:

2019-03-08 12_54_42-Window.png

 

I'm using a new workspace (preview) and added the security group as Admin to the members. What's the missing point?

Hi @Anonymous ,

 

The flow will be , once you get the token

 

Use the token to takeover the DataSET

Then call the Refresh API using the token

 

Let me know if you face any issue with this

Anonymous
Not applicable

Has really no one a working example? Or I'm the only one who needs a service principial due to some 2FA?



@Anonymous Did you get any solution for this ??

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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