Terraform Provider Audit Log Export Permissions 403

Is it possible to configure audit log retention policies via the Genesys Cloud Terraform provider without triggering permission errors?

Attempting to apply a configuration for audit logging in the au-2 region. Provider version 1.58.2. The deployment pipeline fails during the apply phase with a 403 Forbidden error. The service account used by GitHub Actions has Organization Administrator and Audit Log Viewer roles assigned.

The specific resource is genesyscloud_auditlog_export.

To create or modify audit log exports, the user must have the Audit Log Admin permission.

The documentation suggests the admin role is sufficient, but the API response indicates a missing scope.

Error: Error creating audit log export: 403 Forbidden
Status: 403
Message: Insufficient permissions to perform this action.

Checking the effective permissions via the CLI shows the role is active. Is there a known issue with role propagation for new service accounts in the Australian region? Or is there a specific API endpoint that needs manual permission grant before Terraform can manage the resource?

According to the docs, they say that audit log management requires specific admin scopes beyond just viewing. The Organization Administrator role is a UI concept, not an API scope. For Terraform providers to write configuration, the service account needs the org:audit-log:write scope explicitly.

Check the service account settings in Genesys Cloud Admin > Security > Service Accounts. Ensure the “Audit Log Management” permission set is attached. Without this, the API returns 403 even if the user looks like an admin in the portal.

For recording exports, we often see similar scope mismatches with S3 integrations. The bot user must have recording:export:write and valid IAM trust policies. It is the same principle here. The provider fails because the underlying OAuth token lacks the necessary write permission for the audit resource.

See this support article for scope mapping: https://support.genesys.cloud/s/article/terraform-audit-scope-mapping