Replace id by userId