We are using terraform to roles in the environment and we are seeing below errors:
│ Error: mismatch on attribute permission_policies.871666982.action_set.1777816869:
│ expected value:
│ actual value: view
│
│ with genesyscloud_auth_role.Script_Designer_2899078499,
│ on genesyscloud.tf line 46694, in resource "genesyscloud_auth_role" "Script_Designer_2899078499":
│ 46694: resource "genesyscloud_auth_role" "Script_Designer_2899078499" {
Here is the resource info:
resource "genesyscloud_auth_role" "Script_Designer_2899078499" {
description = "Enables a user to create scripts, manage existing scripts, make scripts available for use by publishing them, and manage published scripts"
name = "Script Designer"
permission_policies {
action_set = ["add", "delete", "edit", "search", "view"]
domain = "scripter"
entity_name = "publishedScript"
}
permission_policies {
action_set = ["add", "delete", "edit", "search", "view"]
domain = "scripter"
entity_name = "script"
}
permission_policies {
entity_name = "ariaWFMApps"
action_set = ["view"]
domain = "integration"
}
default_role_id = "scriptDesigner"
}
Could you please check if the Aria - WFM Adapter Premium Application has been purchased and enabled in your Genesys Cloud org?
I think your script is failing because the "integration: ariaWFMApps:view" permission does not exist in your Genesys Cloud org when you run this terraform script.
The "integration: ariaWFMApps:view" permission is only added/made available in a Genesys Cloud org after the corresponding product has been purchased and added to the Genesys Cloud subscription.
So if the Aria - WFM Adapter hasn't been purchased/enabled yet, please try removing the ariaWFMApps permission policy from you terraform script.
Or purchase the WFM Adapter application, and try to run your terraform script again.
Yup, you are right. We eventually figured it out, ran couple tests this morning and compared manually the permission policies btw default roles for the two given orgs and the below permission is missing in the destination Org.