This would be better as a function added to the UserProfile model, see UserProfile.accounts. Privacy settings must be respected.