Ram Prasad
 

Removing a user/users from all SharePoint Groups in a Site Collection

Jan, 18 2015
 
1 min/s
 
 

For some SharePoint implementation, we might end up creating many SharePoint groups and add users to these groups based on the business needs. Later we might need to remove a user from all these groups or the entire site collection. If we are having many groups spread across various sub sites within the site collection, it will be a tedious task to manually remove the users from all the SharePoint groups. There are many blogs which talk about writing some PowerShell script to traverse through all the SharePoint Groups and remove the user/users. If you are trying to remove the user/users completely from the site collection and all its groups, you can do this is in a simple way through UI. No need to write any code or PowerShell. Follow the below steps.

  • Login as Site Collection Administrator, click 'Site Actions' -> 'Site Settings'.
  • Click on any exiting SharePoint Groups (eg., Memebers). This opens a new page, observe the URL of this page which will be something like below.
    http://<<siteurl>>/_layouts/people.aspx?MembershipGroupID=5
  • Now, change the query string value of 'MembershipGroupID' to 0 (zero). This will show All People within the site collection.
  • Select the user/users, and from the Actions menu click on 'Delete Users from Site Collection'

This will remove the selected user/users from all the SharePoint groups, libraries, lists and sub sites in the Site Collection.