Running into a data integrity issue when cleaning up old user accounts. I’m using the Genesys Cloud TypeScript SDK to delete users that have left the org, but it seems like the interaction history gets orphaned or the user reference becomes null in a way that breaks reporting queries. The usersApi.deleteUser(userId) call works fine, returns 204, but subsequent calls to analyticsApi.getInteractions for that period show the user as unknown or the data is excluded entirely. Is there a specific flag or alternative endpoint to ‘deactivate’ rather than ‘delete’ that preserves the historical linkage? I’ve checked the User model docs but don’t see a soft-delete option. Here’s the snippet I’m using:
const response = await usersApi.deleteUser({ userId: '12345' });
console.log(response.status); // 204
The goal is to remove them from active provisioning without nuking their historical call data. Any ideas on the correct API pattern here?