Bulk Export API 403 on Legal Hold Records with S3 Destination

The bulk export job fails immediately upon initiation with a 403 Forbidden response. The API gateway logs indicate AccessDenied: The bucket policy does not grant permission to the assumed role. This occurs specifically when the query filter includes records tagged with legalHold: true within the last 30 days.

Environment details are as follows: Genesys Cloud v2023.12, using the Python SDK version 2.1.4. The integration uses AWS S3 via a BYOC setup with an IAM role assumed through STS. Standard recording exports (without legal hold flags) to the same bucket succeed without error. The issue persists across different date ranges, provided the legal hold metadata is present. Audit trails show the export request is authenticated correctly, but the permission check fails at the storage layer when handling restricted data. The S3 bucket policy explicitly allows s3:PutObject for the role ARN, yet the error suggests the policy evaluation is failing during the write operation.

The requirement is to maintain a strict chain of custody for discovery requests, so manual download is not an option. The export must be automated via API to ensure metadata integrity. Any insights on specific IAM policy conditions or Genesys Cloud configuration settings that might block legal hold data from being written to external storage would be appreciated. The standard documentation mentions compliance restrictions but does not detail the exact permission scope required for legalHold enabled records in bulk export scenarios.