Forum Discussion
REST API using MS Entra ID App
- swapnil-saxena2 years agoFrequent Visitor
Thanks. I was using the v2 url to get the token. I fixed it with the one that you suggested and I can get the token now. But it doesn't seem to work with any of the REST endpoints. Getting
"message": "Unable to process the operation due to an error in the request"Can you also similarly show params for any endpoint that works for you? I'm particularly interested in these two: Get Item and Job Scheduler - Run On Demand Item Job- frithjof_v2 years agoCommunity Champion
I think you only need one header parameter, Authorization.
If your token is 12345 then the value you enter in the Authorization header should be Bearer 12345.
Thus, you need to add Bearer in front of the token.
That worked for me with the endpoints I mentioned
You also need to make sure that you gave the app registration permissions to read the required scopes in the API permissions page in the App registration in Azure portal.
I agree there seems to be some contradiction in the documentation regarding whether or not service principal is supported. In my experience, currently service principal authentication doesn't work for the Lakehouse endpoint, but it works for the endpoints I mentioned.
- Anonymous2 years agoNot applicable
Hello swapnil-saxena ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .
In case if you have any resolution please do share that same with the community as it can be helpful to others .
Otherwise, will respond back with the more details and we will try to help .