Added property to profile after profile already created

Last post 04-26-2007 11:30 PM by XiaoYong Dai – MSFT. 2 replies.

Sort Posts:

  • Added property to profile after profile already created

    04-24-2007, 10:43 PM
    • Member
      449 point Member
    • jtoth55
    • Member since 03-22-2005, 12:17 AM
    • Maryland
    • Posts 158

    Hey all,

    I have a profile with a number of properties in it and I want to add a new property to user's profiles now.... I assumed that if I just added the new property to my web.config that it would add it for all users but that didn't happen, it seems like it'll only be used in newly created profiles. How do I get all the existing profiles to pick up this new property?

    Thanks,

    Justin

    Justin Toth
    http://tothsolutions.com
    http://tothsolutions.com/blog
  • Re: Added property to profile after profile already created

    04-25-2007, 7:49 PM
    • Member
      449 point Member
    • jtoth55
    • Member since 03-22-2005, 12:17 AM
    • Maryland
    • Posts 158
    Oh, forgot to mention that if I add the profile property on my local dev machine then it gets added fine but when I add it on my test server it doesn't get added.
    Justin Toth
    http://tothsolutions.com
    http://tothsolutions.com/blog
  • Re: Added property to profile after profile already created

    04-26-2007, 11:30 PM
    Answer

    Hi

    In my opinion, it's sure all profiles will be used for newly created users. For the old ones, you need some trigger to update the profile.

    I suggest using the Membership.GetAllUsers method to retrieve all users. Then, I'd retrieve the profile for each user and take the old collection and bind them to your new profiles. Hope it helps.

    Best Regards
    XiaoYong Dai
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (3 items)