Azure Custom Role to allow list keys for only FormRecognizer
Abdul Wajid
40
Reputation points
Hello Team, I am trying to build a role that will be assigned on the resource group level to allow users contributor level access to FormRecognizer resources only. This role however also gives them access to list keys for other Cognitive Services resources. Is there a way to restrict them to only list Keys for ForRecognizer resources?
{
"properties": {
"roleName": "formRecognizer-contributor",
"description": "Full access to the project, including the ability to view, create, edit, or delete projects.",
"assignableScopes": [
"/"
],
"permissions": [
{
"actions": [
"Microsoft.CognitiveServices/accounts/listKeys/action",
"Microsoft.CognitiveServices/*/read"
],
"notActions": [],
"dataActions": [
"Microsoft.CognitiveServices/accounts/FormRecognizer/*"
],
"notDataActions": []
}
]
}
}