I am using a service account with the following roles: Test Case Admin and Project Editor.
But when I call TestCasesClient on Javascript sdk I get the following error:
"IAM permission 'dialogflow.testcases.list' on 'projects/dialogflow-cx-340313/locations/global/agents/<REDACTED>' denied.",
What permissions should I set? I didn't find anything about this in the documentation.
Hi SanteeMarcel,
Maybe you should create custom_role with needed policy and then assign this role to your service account ?
Check this :
gcloud iam roles create dialog_flow_test_case --project=coe-chatbot --title="dialog-flow-dedicated-sa" --description="Custom role for dialogflow" --permissions="dialogflow.testcases.list" --stage=GA
Good suggestion but it didn't work.