Trying to decommission a test user via the API to clean up our staging environment. I’m calling DELETE /api/v2/users/{userId}. The request returns a 204 No Content, which is expected. However, when I query the interaction history or analytics for that user ID later, the data is still there but the user object is null or gone, breaking my tracing correlation in Jaeger. I’m using the Python SDK:
from genesyscloud.users import UsersApi
users_api = UsersApi(configuration)
try:
users_api.delete_user(user_id=test_user_id)
print("User deleted")
except Exception as e:
print(f"Error: {e}")
Is there a way to archive the user or keep the identity record intact while disabling the account? I need the user ID to persist in the historical data for my OpenTelemetry span propagation tests. The docs mention deactivating users, but I don’t see an API endpoint for that. Just deleting seems to orphan the historical references. What’s the standard approach here?