Friday, 28 September 2007

Using stsadm to add users to a SharePoint group

At first glance, the stsadm adduser command seems a bit of a pain when adding users into SharePoint because you have to specify a userlogin, useremail and username variable when using the command - these are not optional.

However, I have found that when I use dummy names for the useremail and username variables, the user profile database in MOSS overwrites them once the user has been added to the group. So, I used the following stsadm command to add users to a SharePoint group, which can be useful when you have bulk users to add from a CSV file:

stsadm -o adduser -url http:// -userlogin -useremail test@test.com -group "" -username "Test User"

For example,

stsadm -o adduser -url https://portal.edulink.internal -userlogin EDULINK\phil.childs -useremail test@test.com -group "Corporate Users" -username "Test User"

Once added, wait a few seconds and the e-mail address and user name changes from test@test.com and Test User to the correct one specified in the user profile database. Make sure that you test this with one user first though, before creating a script to add 1000 users all at once!

25 comments:

  1. By reading this article I get a lot of lessons and this is very useful . cara menggugurkan kandungan

    ReplyDelete
  2. By taking the time to read a lot of information like this to add my insight . cara menggugurkan hamil

    ReplyDelete



  3. https://www.dnfl150.com/theking
    https://www.dnfl150.com/yes
    https://www.dnfl150.com/first
    https://www.dnfl150.com/sands
    https://www.dnfl150.com/joy
    https://www.dnfl150.com/royal
    https://www.dnfl150.com/starclub
    https://www.dnfl150.com/asian
    https://www.dnfl150.com/superman
    https://www.dnfl150.com

    ReplyDelete
  4. The latest trend in Coach Outlet Online is to purchase them secondhand.
    Today, buying Michael Kors Bags Outlet is looked upon as a smart choice.
    Because Michael Kors Purse Outlet are crafted of the finest material, they are known to last for many years, making them the perfect purchase.
    Some women are fanatical about changing their Coach Outlet Store Online or their style every few months, making it necessary to periodically clean out their wardrobe.
    Other women buy a MK Outlet for one specific occasion and some women just make a habit of buying a lot of purses.
    The trends are changing today; more and more people are buying classic shoes, including designer Cheap Real Yeezys.
    If your dream has always been to own a Cheap Yeezys, it is possible just by finding a store and click here.
    Coach Bags Clearance are pursued by many famous characters.
    Coach Bags Outlet in different styles and different colors are in different leathers.
    Next time, I will share some knowledge about how to maintain the bags in different material.

    ReplyDelete
  5. Smartphones Raising Cheap Real Yeezys a Mentally Fragile Generation, Says TwengeThe Cyberspace Administration of China had erased the accounts for violations that included "spreading politically harmful information, maliciously falsifying (Chinese Communist) party.Facebook Services Back Up After Americas Disruption on MondayFacebook users in the Nike Air Force 1 Cheap Outlet Cheap Ray Ban Sunglasses Americas were able to get back onto their profiles Monday afternoon, after the social media network went down briefly across some parts Michael Kors Bags Outlet of the region.Gerard Butler New Jordan Shoes 2020 Shares Video Of His Home Ravaged In California WildfireWorld News ANI Tuesday November 13, 2018While walking among the rubble in the social media post, Gerard Butler said the area looked like a 'war zone.'For 80 Days, This Dog Has Been Waiting On The Road Where Owner DiedOffbeat NDTV Offbeat Desk Tuesday Coach Outlet Online Store November 13, 2018The story of a dog in China has gone viral on social media and left thousands around the world teary eyed. Cheap Jordans Online The loyal dog, who has been waiting for 80 days at the spot where his owner died, has tugged at the heartstrings of many.Stan Lee Dies At 95. Fake Yeezys Tributes Pour In For "Leader Of Superhero Universe"World News Edited by Richa Taneja Tuesday November 13, 2018Stan Lee, the Marvel Comic legend, gave the world superheroes like Iron Man, Spider Man, X Men, the Fantastic Four, Coach Outlet Clearance Sale the Avengers and the Hulk.

    ReplyDelete