Replace use of deprecated UserProfile::getUserProfiles()