Skip to content

Commit 2313b9f

Browse files
Merge pull request #926 from Blackmist/sfi-apim-error
info about an error
2 parents 7a35b46 + 6ff13ee commit 2313b9f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

articles/ai-studio/concepts/rbac-ai-studio.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,29 @@ The following example defines a role for a developer using [Azure OpenAI Assista
384384
}
385385
```
386386

387+
## Troubleshooting
388+
389+
### Error: Principal does not have access to API/Operation
390+
391+
#### Symptoms
392+
393+
When using the Azure AI Studio chat playground, you receive an error message stating "Principal does not have access to API/Operation". The error may also include an "Apim-request-id".
394+
395+
#### Cause
396+
397+
The user or service principal used to authenticate requests to Azure OpenAI or Azure AI Search does not have the required permissions to access the resource.
398+
399+
#### Solution
400+
401+
Assign the following roles to the user or service principal. The role you assign depends on the services you are using and the level of access the user or service principal requires:
402+
403+
| Service being accessed | Role | Description |
404+
| --- | --- | --- |
405+
| Azure OpenAI | Cognitive Services OpenAI Contributor | Call public ingestion API from Azure AI Studio. |
406+
| Azure OpenAI | Cognitive Services User | List API-Keys from Azure AI Studio. |
407+
| Azure AI Search | Search Index Data Contributor | Required for indexing scenarios. |
408+
| Azure AI Search| Search Index Data Reader | Inference service queries the data from the index. Only used for inference scenarios. |
409+
387410
## Next steps
388411

389412
- [How to create an Azure AI Studio hub](../how-to/create-azure-ai-resource.md)

0 commit comments

Comments
 (0)