As part of my SharePoint FARM cleanup I had noticed that there are many user account hanging in SharePoint who are not part of organization any more. Business user had an escalation about populating non existing users while sharing sites / adding new users to site.
To be more precise I have user name “Raghava P” as part of members group but the same user is not part of AD users (as shown in below screen shots).
User existence in members group:
This is only for one site collection and one user I can’ ask the admin to navigate each and every site collection and delete the non-existed users.
Where is this user existed??
The strange doubt / question in this scenario from where this user is getting populated? In SharePoint as soon as you add a user with some permission the user will be added to a hidden list http://sharepoint13:12345/_catalogs/users/simple.aspx . That is why MicroSoft is suggesting to add the users from AD groups.
I have implemented the below PowerShell solution to clean the non-existed users across the site collections.
The beauty of this script is! It read through a CSV file and delete all the users listed in that CSV file across all the site collections of a FARM.
JOIN a FREE SharePoint Video Course (3 Part Video Series)
About Krishna Vandanapu
I am Krishna.Vandanapu a SharePoint architect working in IT from last 13+ years, I worked in SharePoint 2007, 2010, 2013, 2016 and Office 365. I have extensive hands on experience in customizing SharePoint sites from end to end. Expertise in SharePoint migration tools like Sharegate, Doc Ave and Metalogix. Migrated SharePoint sites from SharePoint 2007 to 2010 and 2010 to 2013 several times seamlessly. Implementing CSOM with Microsoft best practices. Spent quality time in configuring SharePoint application services like User Profile, Search, Managed Meta data services etc. Now exploring SharePoint Framework and SharePoint 2019
Your FREESharePoint Online Ebook is on its way to your Email Inbox. **************** You will get notification on FREE SharePoint online training, SharePoint webinars, Video Tutorial & also latest FREE PDF tutorials