I am assuming that the users have to already be in AD?

Jun 26, 2012 at 10:49 PM

My main goal is to be able to add over 1,700 users to a wss site group from AD. If I have the users already created in AD, what csv file do I use and how do I format the fields?

Thank you very much for what I am sure is a great script, if I can only figure out how to run it!



Jun 27, 2012 at 2:01 PM

Dear Ray,

If you talk about add the AD Accounts in a WSS Membership for your teamsite, you can do it by add the permission set from the AD Group directly.

If you want to add each account in the SharePoint group, you can do it with a modified powershell (based on one of the existing) to export the users (simply the login) :

  • in an xml file. The XML can be load with another PS script and add each login account in your SharePoint group (loading the SP Object Model).
  • in a simple text file separted by ";". You can add the users login manually in your group management page

I think the second option could be the quicker if it's a one shot.


Fabrice Romelard [MVP]