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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
clearyj3
Frequent Visitor

Querying Fabric's API for GraphQL in Postman

Hi everyone,

 

I'm currently working with Fabric's API for GraphQL in Postman and have encountered an issue. I'm able to generate a bearer token using Entra ID, but every time I attempt to use it, I receive an "invalid token" error.

 

I've been trying to figure out if there are specific permissions or scopes required for this operation. Specifically, I'm wondering if the "tasks.ReadAll" permission is necessary, or if there's something else I'm missing.

 

If anyone has experience with this or could provide guidance on the required permissions or any other potential issues, I would greatly appreciate it!

 

Thanks in advance for your help!

1 ACCEPTED SOLUTION
v-jingzhan-msft
Community Support
Community Support

Hi @clearyj3 

 

I struggled 3 hours and finally made it. Here are my settings:

 

1. Create a Microsoft Entra App in Azure Portal. Follow steps in this article and modify the following settings:

Authentication:

  • Add a platform, select Mobile and desktop application. It generates some Redirect URIs automatically. I choose the first one. This will be used in Postman later. 

vjingzhanmsft_2-1732692991498.png

 

  • Allow public client flows: Yes

vjingzhanmsft_3-1732693049357.png

API Permissions:

vjingzhanmsft_7-1732694688028.png

 

2. In Postman, create a request and set up its Authorization like below:

vjingzhanmsft_4-1732693539012.png

vjingzhanmsft_5-1732693731497.png

 

Then click "Get New Access Token" to get the token. It pops up browser windows for you to log in your account. After authentication completes, it will display token value. You can copy it or click "Use the token" to use it in the request. 

 

3. Set up the body part and sent the POST request to GraphQL API:

vjingzhanmsft_6-1732694563177.png

 

I forgot to mention that my GraphQL API is created with SSO authentication option and I use my UPN to query the API. My account is the admin of the workspace where the GraphQL API is located. I haven't tested other scenarios. 

 

Hope this would be helpful. 

 

Reference:

Create and add data to an API for GraphQL - Microsoft Fabric | Microsoft Learn

Connect applications to Fabric API for GraphQL - Microsoft Fabric | Microsoft Learn

How to send graphql query by postman? - Stack Overflow

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

1 REPLY 1
v-jingzhan-msft
Community Support
Community Support

Hi @clearyj3 

 

I struggled 3 hours and finally made it. Here are my settings:

 

1. Create a Microsoft Entra App in Azure Portal. Follow steps in this article and modify the following settings:

Authentication:

  • Add a platform, select Mobile and desktop application. It generates some Redirect URIs automatically. I choose the first one. This will be used in Postman later. 

vjingzhanmsft_2-1732692991498.png

 

  • Allow public client flows: Yes

vjingzhanmsft_3-1732693049357.png

API Permissions:

vjingzhanmsft_7-1732694688028.png

 

2. In Postman, create a request and set up its Authorization like below:

vjingzhanmsft_4-1732693539012.png

vjingzhanmsft_5-1732693731497.png

 

Then click "Get New Access Token" to get the token. It pops up browser windows for you to log in your account. After authentication completes, it will display token value. You can copy it or click "Use the token" to use it in the request. 

 

3. Set up the body part and sent the POST request to GraphQL API:

vjingzhanmsft_6-1732694563177.png

 

I forgot to mention that my GraphQL API is created with SSO authentication option and I use my UPN to query the API. My account is the admin of the workspace where the GraphQL API is located. I haven't tested other scenarios. 

 

Hope this would be helpful. 

 

Reference:

Create and add data to an API for GraphQL - Microsoft Fabric | Microsoft Learn

Connect applications to Fabric API for GraphQL - Microsoft Fabric | Microsoft Learn

How to send graphql query by postman? - Stack Overflow

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.