Forum Discussion
Fabric GraphQL API with Microsoft App Registration Endpoint, with OAuth Access Token.
- 2 years ago
SauravRajJoshi I think Stand alone Service Principals are not supported currently in GraphQL. You have to provide delegated permissions to the Service principal for it to access the data from the SQL endpoint.
When you use delegated permissions, you must authenticate the service principal as well as the user. Read the below link to know more.
Hi, SauravRajJoshi
what permission are you giving to the app? I think at least contributor access is required.
refer: c# - Generating token for Fabric Rest api using client secret - Stack Overflow
also, check the status code.
Solved: Rest API Access token using OAuth Token - Microsoft Fabric Community
Hi rubayatyasmin ,
As I have mentioned above, the service principal is an admin in my fabric workspace, I have also added the same link above in my question, I have already followed along every step and given all of the permissions mentioned in the docs and forums.
The issues still persists.
- govindarajan_d2 years agoSuper User
SauravRajJoshi I think Stand alone Service Principals are not supported currently in GraphQL. You have to provide delegated permissions to the Service principal for it to access the data from the SQL endpoint.
When you use delegated permissions, you must authenticate the service principal as well as the user. Read the below link to know more.
- Suerima1 year agoFrequent Visitor
I want to try connecting applications to Fabric API for GraphQL. I'm unsure if the account used to create a GraphQL API in Fabric has to be the same as the Azure account used to create Microsoft Entra?