Open steveAG opened 4 months ago
Something like this should work for you you might still run into this other reported bug https://github.com/okta/terraform-provider-okta/issues/1991
data "okta_org_metadata" "_" {}
locals {
org_uri = data.okta_org_metadata._.domains["organization"]
org_url = replace(local.org_uri, "https://", "")
orn_prefix = "orn:${local.org_url_1}"
okta_instance_id = data.okta_org_metadata._.id
}
resource "okta_resource_set" "support_cases" {
label = "Support Cases"
description = "Support Cases"
resources = [
"${local.orn_prefix}:support:${local.okta_instance_id}:cases"
]
}
OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-740253
Community Note
Description
This one is blocked by an API limitation, the recent changes to support access require a resource set to be created that grants an admin with the
okta.support.cases.manage
permission access to create and manage support cases, as documented here.This can be done in the UI, and a custom role that grants the permission can be managed with the provider, but the resource set cannot be managed with the API, or by extension the provider.
New or Affected Resource(s)
okta_resource_set
Potential Terraform Configuration
Current API response for a resource set that includes cases:
References