Legacy Dev Forum Posts

 View Only

Sign Up

Terraform - '"genesyscloud_auth_role"' errors

  • 1.  Terraform - '"genesyscloud_auth_role"' errors

    Posted 06-05-2025 19:24

    Lalitha | 2023-10-03 05:49:51 UTC | #1

    Hi,

    We are using terraform to roles in the environment and we are seeing below errors: │ Error: mismatch on attribute permissionpolicies.871666982.actionset.1777816869: │ expected value: <nil> │ actual value: view │ │ with genesyscloudauthrole.ScriptDesigner2899078499, │ on genesyscloud.tf line 46694, in resource "genesyscloudauthrole" "ScriptDesigner2899078499": │ 46694: resource "genesyscloudauthrole" "ScriptDesigner2899078499" {

    Here is the resource info: resource "genesyscloudauthrole" "ScriptDesigner2899078499" { 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" permissionpolicies { actionset = ["add", "delete", "edit", "search", "view"] domain = "scripter" entityname = "publishedScript" } permissionpolicies { actionset = ["add", "delete", "edit", "search", "view"] domain = "scripter" entityname = "script" } permissionpolicies { entityname = "ariaWFMApps" actionset = ["view"] domain = "integration" } defaultrole_id = "scriptDesigner" }

    How do we fix this error, Please advise.

    Thanks, Lalitha


    charlie.conneely | 2023-10-03 11:26:58 UTC | #2

    Hi Lalitha

    Thanks for reporting this issue. It seems to be a bug in the provider. We're going to create a ticket and get a dev working on this as soon as we can.

    If we find a temporary workaround for you in the meantime, we will let you know here.

    -Charlie


    Lalitha | 2023-10-03 11:44:11 UTC | #3

    Hi Charlie,

    Thanks for the update. Do we know when it can be fixed as we are in middle of setting up an Org and this issue is blocking us in moving forward.

    Thanks, Lalitha


    Jerome.Saint-Marc | 2023-10-03 15:43:01 UTC | #4

    Hello,

    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.

    Regards,


    Lalitha | 2023-10-03 15:59:32 UTC | #5

    Hi,

    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.

    Thanks, Lalitha


    system | 2023-11-03 16:00:14 UTC | #6

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 22323