Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedJoin us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register 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!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the February 2025 Fabric update to learn about new features.
User | Count |
---|---|
42 | |
5 | |
2 | |
2 | |
2 |
User | Count |
---|---|
37 | |
6 | |
6 | |
5 | |
4 |