Getting user details from a custom profile
I have found this
public
List<SitefinityProfile> GetAllProfiles()
UserProfileManager profileManager = UserProfileManager.GetManager();
IQueryable<UserProfile> sfProfiles = SitefinityQuery.Get<UserProfile>(
typeof
(SitefinityProfile), profileManager.Provider).Where(p => p.ApplicationName == profileManager.Provider.ApplicationName);
return
sfProfiles.Cast<SitefinityProfile>().ToList();