Analytics API returning 403 on custom metric definition

Why does this setting block the POST /api/v2/employeeperformance/externalmetrics/definitions call?

Config:

  • terraform-provider-genesyscloud v1.65.0
  • GC Org: ap-southeast-2
  • Role: Admin

HCL block is standard. Terraform logs show 403 Forbidden. Direct API call via Postman with same token works. Is the provider sending malformed headers? Need fix for pipeline.

3 Likes

The way I solve this is by verifying the OAuth token scopes in the Terraform provider configuration. The 403 often stems from missing analytics:report:read or analytics:report:write permissions, even with Admin roles. Ensure the provider block explicitly defines the required scopes rather than relying on implicit defaults, which frequently causes header mismatches in APAC regions.

3 Likes