Does anyone understand why the WFM schedule adherence endpoint returns a 403 Forbidden error when invoked via Terraform? The pipeline fails during the apply phase for the genesyscloud_wfm_schedule resource. The user has the correct roles assigned.
- Verified API permissions using Postman; manual requests succeed.
- Checked Terraform provider version 1.45.0 for known WFM bugs.
I’d suggest checking out at the service account’s OAuth scopes. Terraform often uses a different auth context than Postman, similar to how Zendesk API tokens behave differently from browser sessions.
- Grant
wfm:schedule:write explicitly in the Genesys Cloud admin console.
- Run
terraform refresh to sync state and clear any cached expired tokens.
- Verify the provider block isn’t using stale credentials during the apply phase.
Take a look at at the service account’s OAuth scopes. Terraform often uses a different auth context than Postman, similar to how Zendesk API tokens behave differently from browser sessions.
Grant wfm:schedule:write explicitly in the Genesys Cloud admin console.
Run terraform refresh to sync state and clear any cached expired tokens.
Verify the provider block isn’t using stale credentials during the apply phase.