March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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!
Solved! Go to Solution.
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:
API Permissions:
2. In Postman, create a request and set up its Authorization like below:
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:
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!
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:
API Permissions:
2. In Postman, create a request and set up its Authorization like below:
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:
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
6 | |
2 | |
1 | |
1 | |
1 |