Scripts to handle EEEU "Everyone Except for External Users" from the file level in SharePoint Online
Find-EEEUInSites.ps1 Finds all instances files shared with (EEEU) permissions in SharePoint Online and OneDrive sites.
Output Example:
Note: This output CSV file can be directly used with the Remove-EEEUFromFileList.ps1 to mitigate oversharing using the input list
Remove-EEEUFromFileList.ps1 = Removes EEEU from an input list of files across site. The file list should contain the URL, ItemURL and ItemType.
Example input from Find-EEEUInSites.ps1
Find-RemoveEEEUfromSites.ps1 This script combines the functionality of "Find-EEEUInSites.ps1" and "Remove-EEEUFromFileList.ps1". It first locates all EEEU occurrences using the same method as Find-EEEUInSites.ps1, and then removes the EEEU role from each object as it is found.