You can rent to a family member on housing benefit or universal credit as long as you don’t live with them and you have a formal agreement.