UserProfileManager.GetEnumerator() is used
Description
UserProfileManager.GetEnumerator() should not be used. It would enumerate all user profiles, so that it could have a performance impact.
Resolution
Consider utilizing search to get user profiles you are interested in. Then retrieve needed user profiles as you need.