Answered Creating New user account in sharepoint 2010

  • Wednesday, April 18, 2012 6:28 AM
     
     

    Hi,

    Can anyone tell me how to create a new user account in SharePoint 2010,

    If it is can be done through programmatically i.e using c# code.

    since it is urgent requirement please reply ASAP.

    Regards,

    Karthick

All Replies

  • Wednesday, April 18, 2012 6:38 AM
     
     

    Hi,

    It seems that you configured FBA with SharePoint 2010 so to create a New User Account check this source 

    http://sharepoint2010fba.codeplex.com/


    Regards, Fadi Abdulwahab. http://blogs.msdn.com/b/fabdulwahab http://sqlgoogler.blogspot.com/ Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you

  • Wednesday, April 18, 2012 6:52 AM
     
     

    Hi Fadi,

    Thanks for your reply.

    But my requirements are firstly how/where to add new user's details like email id, password...

    And then how to add that new user to site user groups.

    I know to add the user to site user groups using "Peoples and groups" in site settings,  but for that i don't know how/where to add that new user details.

    Will you please help me on this. And also the same can be able to do through programmatically using c# code.

    Regards,

    Karthick.R

  • Wednesday, April 18, 2012 6:54 AM
     
     

    Hi,

    1- first you have to determine the user repository : Active Directory or FBA membership Database

    2- then you can write a code to create users in AD or Database


    Regards, Fadi Abdulwahab. http://blogs.msdn.com/b/fabdulwahab http://sqlgoogler.blogspot.com/ Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you

  • Wednesday, April 18, 2012 8:02 AM
     
     

    To elaborate on what Fadi has stated, and assuming you're using an AD model.  You (or possibly a system administrator) would create the user account in active directory.   This is where all the details would be stored such as username and email etc.  Once the user is created in AD, the users would be selectable from the People Picker when browsing "People and Groups".

    There are 3rd party workflow applications that can facilitate in the creation of user accounts from within SharePoint but these come at a cost. 


    Paul Turner http://redmanta.co.uk/blog Twitter: @RedMantaUK MCTS:WSS,MOSS,2010 MCITP:2010.
    Please remember to click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

  • Wednesday, April 18, 2012 8:21 AM
     
     Proposed

    Dear karthik

    if you are using windows authentication

    first you will  add user in active directory(here you should give all details like email, password....)

    then come to sharepoint site ->site settings -->Users and Permissions -->peoples and groups->new-->user

    add user here

    Please remember to click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if it was useful


  • Wednesday, April 18, 2012 8:36 AM
     
     

    hi Jithendar Bathini,

    Yes i using windows authentication only, and i can able to add user details in active directory and use it in sharepoint site also, but my actual requirement is to do this using c# code.

    I need to do programatically using  c# application.

    Regards,

    Karthick.R

  • Wednesday, April 18, 2012 8:40 AM
     
     Answered

    Hi

    check this API 

    Everything in Active Directory via C#.NET 3.5 

    http://www.codeproject.com/Articles/90142/Everything-in-Active-Directory-via-C-NET-3-5-Using

    [Create Visual Web part for Adding New User]


    Regards, Fadi Abdulwahab. http://blogs.msdn.com/b/fabdulwahab http://sqlgoogler.blogspot.com/ Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you

  • Wednesday, April 18, 2012 9:37 AM
     
     Proposed
     

    using c# code you can add user to active directory programetically,

    this is the code


    http://www.a2zdotnet.com/View.aspx?Id=111
  • Wednesday, April 18, 2012 10:40 AM
     
     

    Hi Karthick,

    This link will be helpful for you.

    Creating Active Directory User using C#.Net 3.5


    Murugesa Pandian.,MCTS|App.Devleopment|Configure

  • Wednesday, April 18, 2012 12:46 PM
     
     

    Hi Jithendar,

    sorry for the wrong information provided,

    I am using the Windows web Server 2008 R2,

    and not having the Active directory there.

    My requirement is to add new user account to the "lusrmgr.msc" using the "C#" code.

    Can anyone help me for this.

    Thanks and Regards,

    Karthick.R

  • Wednesday, April 18, 2012 12:46 PM
     
     

    Hi Murugesa Pandian,

    sorry for the wrong information provided,

    I am using the Windows web Server 2008 R2,

    and not having the Active directory there.

    My requirement is to add new user account to the "lusrmgr.msc" using the "C#" code.

    Can anyone help me for this.

    Thanks and Regards,

    Karthick.R
  • Wednesday, April 18, 2012 12:47 PM
     
     

    Hi Fadi Abdulwahab,

    sorry for the wrong information provided,

    I am using the Windows web Server 2008 R2,

    and not having the Active directory there.

    My requirement is to add new user account to the "lusrmgr.msc" using the "C#" code.

    Can anyone help me for this.

    Thanks and Regards,

    Karthick.R

  • Monday, May 07, 2012 6:13 AM
    Moderator
     
     

    The artilce Fadi posted details a sample, which uses PrincipalContext to manage accounts in a domain. But in fact, PrincipalContext can work with a local host(local machine, or lusrmgr.msc as you mentioned)

    Thanks,
    Jinchun Chen


    Jinchun Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @)