More in this section

Forums / Developing with Sitefinity / Getting user details from a custom profile

Getting user details from a custom profile

1 posts, 0 answered
  1. Rick
    Rick avatar
    32 posts
    13 Dec 2006
    26 Apr 2013
    Link to this post
    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?
1 posts, 0 answered