Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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!
Check out the March 2025 Fabric update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
11 | |
4 | |
2 | |
1 | |
1 |
User | Count |
---|---|
4 | |
4 | |
3 | |
3 | |
3 |