Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've got 889 groups in People and Groups that I would like to delete. The normal way I can delete one group is:

  1. Navigate to the People and Groups management page, /_layouts/groups.aspx
  2. Click Edit to get to the Group Settings
  3. Scroll to the bottom and Click Delete I don't want to do that 889 times, but I don't want to deploy code to the server to do it.

What is the best way to accomplish this? A free third party client based tool would be acceptable or a web services api call if no other way exists.

share|improve this question
add comment

2 Answers 2

You can use my jQuery Library for SharePoint Web Services to call the Users and Groups Web Service operation RemoveGroup. It's not clear where you have the list of 899 groups (or if you do), but if it's in a spreadsheet, make it a SharePoint list and then loop through the items with GetListItems.

share|improve this answer
    
Thanks Mark. Could you share an example with more detail? I have jQuery and I think your library can be used without touching the server, but it would take me a while to work the jQuery syntax unless you help. –  Tom Resing Mar 15 '10 at 16:57
    
Can you get the 899 groups into a list somewhere? –  Marc D Anderson Mar 16 '10 at 16:16
add comment

You can also do this via PowerShell if that is deployed.

share|improve this answer
    
Thanks, Mike. I'm trying to avoid server access by RDP or stsadm commands, but this would be a light server approach if others don't work. –  Tom Resing Mar 15 '10 at 16:56
    
Got it! That is the big reason I didn't fully elaborate and provide code. For me, I used to write console apps to do this sort of thing which seems like overkill. I think PowerShell does a good job of filling the gap if you have access to the server. In many environments that isn't possible though. –  Mike Oryszak Mar 15 '10 at 22:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.