New way of using user impersonation via environment variables