Factor out addposixaccount action