More in this section

Forums / Developing with Sitefinity / Nolics Question

Nolics Question

2 posts, 0 answered
  1. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    04 Dec 2007
    Link to this post
    Hi,

    Do you have a good example of how I would extend the "User" class (if this is possible).  Specifically, I want to store additional information about my users (such as whether they've authenticated their email address or not, among other things).  Also, I then need to import about 3000 users from another system.  Is this something that I can do, and then import them as the more "customized" type?

    I hope that I've made myself clear and I look forward to any suggestions you might have.  Take care.

    EJ
  2. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    05 Dec 2007
    Link to this post
    Hi Ben -

    There may be a way to do this by extending the User class, but we did this by simply creating a dbclass called UserProfile and leaving the MembershipUser alone. Because these users won't be created through the CMS system we then created a custom CreateUserWizard that creates the MembershipUser then writes the UserName to the new UserProfile Nolics item(along with all of the other data you need) for the client facing portion and then a User Management module that allows us to Add/Remove/Unlock/Approve. We felt that this would be the most "upgrade proof" way to handle a lot of additional user data. But I am curious to hear other ideas.

    As far as importing you could then write a module that cycles through an excel file and creates your MembershipUser in the CMS and populates your UserProfile table.

    Sincerely,

    Ben
2 posts, 0 answered