Trying to import an existing WFM schedule group into our Terraform state. The resource exists in the portal, but the import command keeps failing.
Here is the command I’m running:
terraform import genesyscloud_wfm_schedulegroup.main <division_id>:<schedule_group_id>
The error is a standard 404:
Error: GET https://api.mypurecloud.com/api/v2/wfm/schedules/groups/<division_id>:<schedule_group_id>: 404 Not Found
I’ve verified the IDs. The division ID is correct. The schedule group ID is correct. I can fetch the resource directly via the API using Postman with the same token.
The Terraform provider docs say the import ID format is divisionId:scheduleGroupId. I’ve tried swapping the order. I’ve tried just the schedule group ID. Nothing works.
Is there a specific scope required for the service account running the import? We’ve given it wfm:schedulegroup:read.
Also, the provider version is 1.78.0. Is this a known issue with newer versions?