We’ve got a cleanup script running in Python using the genesyscloud SDK to remove offboarded agents from our tenant. The obvious approach is just calling delete_user with the user ID, but that feels risky given the volume of historical voice and webchat interactions tied to these accounts.
If I just blow the user away, does the platform orphan the interaction records? Or do they stay intact with the user reference just dangling there? I’ve seen some threads mention soft deletes, but the API docs for /api/v2/users/{userId} only show a standard DELETE method.
Here’s the snippet I’m looking at:
from genesyscloud import users_api
api_instance = users_api.UsersApi(api_client)
user_id = 'some-agent-id'
api_instance.delete_user(user_id=user_id)
I need to make sure we don’t break any reporting or compliance logs that rely on joining interactions to user profiles. Is there a flag or a different endpoint to archive the user instead? Or is the standard practice to just patch the user to inactive and leave them in the system forever? The docs aren’t super clear on the downstream effects of a hard delete.