Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource genesyscloud_tf_export >> replace_with_datasource = ["genesyscloud_group::group"] fails #1133

Open
juliomasuda opened this issue Jun 28, 2024 · 0 comments

Comments

@juliomasuda
Copy link

I am using the example described at https://registry.terraform.io/providers/MyPureCloud/genesyscloud/latest/docs/resources/tf_export#example-usage
and the output is:
genesyscloud_tf_export.export: Creating...
│ Error: failed to get page of journey action maps error: API Error: 403 - Unable to perform the requested action. You must have at least one of the following permissions assigned: [journey:actionmap:view] (c5fad4cb-d540-4913-be4a-761b3dec1281)
│ To continue exporting other resources in spite of this error, set the 'log_permission_errors' attribute to 'true'
│ with genesyscloud_tf_export.export,
│ on main.tf line 41, in resource "genesyscloud_tf_export" "export":
│ 41: resource "genesyscloud_tf_export" "export" {
│{"resourceName":"genesyscloud_journey_action_map","method":"GET","path":"/api/v2/journey/actionmaps","statusCode":403,"errorMessage":"API
│ Error: 403 - Unable to perform the requested action. You must have at least one of the following permissions
│ assigned: [journey:actionmap:view]
│ (c5fad4cb-d540-4913-be4a-761b3dec1281)","correlationId":"c5fad4cb-d540-4913-be4a-761b3dec1281"}
In fact, the "[journey:actionmap:view]" permission does not exist in my organization, but I have enabled all permissions on "journey" for this OAuth user.
I am using terraform - v.1.8.5
terraform {
required_providers {
genesyscloud = {
source = "MyPureCloud/genesyscloud"
version = "1.40.1"
}}}
If I comment the line:

enable_dependency_resolution = true

the error message changes to "workitems":
genesyscloud_tf_export.export: Creating...
│ Error: Failed to get task management worktype error: failed to get worktypes: API Error: 403 - Unable to perform the requested action. You must have permission workitems:worktype:view in at least one division. (c5a19e70-2faf-4e32-a61c-12368e32676b)
│ To continue exporting other resources in spite of this error, set the 'log_permission_errors' attribute to 'true'
│ with genesyscloud_tf_export.export,
│ on main.tf line 41, in resource "genesyscloud_tf_export" "export":
│ 41: resource "genesyscloud_tf_export" "export" {
│{"resourceName":"genesyscloud_task_management_worktype","method":"POST","path":"/api/v2/taskmanagement/worktypes/query","statusCode":403,"errorMessage":"API
│ Error: 403 - Unable to perform the requested action. You must have permission workitems:worktype:view in at least one
│ division. (c5a19e70-2faf-4e32-a61c-12368e32676b)","correlationId":"c5a19e70-2faf-4e32-a61c-12368e32676b"}
In fact, my organization does not have any workitem permissions available in the permissions tab.
It appears this resource is looking for resources not enabled in my organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant