Getting user details from a custom profile

Posted by Community Admin on 04-Aug-2018 16:04

Getting user details from a custom profile

All Replies

Posted by Community Admin on 26-Apr-2013 00:00

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();

From this link in the documentation

That works perfect for getting the information out of the default membership profile.

We have a custom profile that we store additional user information in and I would like to get all users information from that in a list that I can filter through as well.  How would I go about doing this?

This thread is closed