Forum Discussion
fstorer
Oct 01, 2020Brass Contributor
SharePoint Online - Remove user access from a list of folders via PowerShell
Hello everyone,
We have a SharePoint Team site with several folders in the Document Library. Each folder has access permissions for specific users. When checking the "manage access" section in the SharePoint site, we realised that a lot of folders still show users who have been removed/deleted and are not working for our company anymore. Is there a quick way (-->PowerShell?) to go through each folder and remove those users from the "access list" instead of doing that manually, one folder at a time? Those users are not members of the related Team anymore, and they are not in AzureAD, so I can't explain why they are still shown in the SharePoint Team site.
Any help would be greatly appreciated.
Francesco
No RepliesBe the first to reply