We’re running an automated cleanup script using the Genesys Cloud Python SDK to remove inactive agents. The issue is that calling delete_user seems to orphan historical interaction records, which breaks our OpenTelemetry trace correlation when we query the Interaction API later.
Is there a specific payload or endpoint parameter that preserves the userId reference in past interactions? Or do we need to archive data first?
- SDK:
genesys-cloud-pythonv2.15 - Endpoint:
DELETE /api/v2/users/{userId} - Status: 204 No Content (user gone, traces broken)