Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Setting dialogflow testcases IAM permission on service accounts.

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.

0 2 398
2 REPLIES 2

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

DamianS_0-1672907894803.png

 

Good suggestion but it didn't work.