Principal does not have access to API/Operation while access Document Intelligence

Jeyasingh, Vijayalingam 86 Reputation points
2024-03-27T08:18:00.9566667+00:00

Hi Team,

I have a function app calling the prebuilt-layout in Document Intelligence.

I have assigned "Cognitive Services Contributor" access to the managed identity of the function App.

Still ended up with the error "Principal does not have access to API/Operation"

Can you let me know what is the correct role(s) required to fix this issue?

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,100 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Kebei Jiang 25 Reputation points Microsoft Employee
    2024-04-07T13:42:04.99+00:00

    @Jeyasingh, Vijayalingam For some reason, adding "Cognitive Services User" role resolved this for me...

    5 people found this answer helpful.

  2. Yang Gao 10 Reputation points Microsoft Employee
    2024-08-07T20:46:25.8533333+00:00

    adding "Cognitive Services User" solved the problem for me

    having these two seems not sufficient

    • Cognitive Services Contributor
    • Storage Blob Data Contributor
    2 people found this answer helpful.

  3. Ivan Valadares 0 Reputation points
    2025-02-28T17:24:38.18+00:00

    in my case the needed role was Cognitive Services Data Contributor (Preview)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.