In SharePoint Online, Microsoft made it very easy to share documents and pages. You just click the share button, enter some names, and poof, the users receive an email with a link to said document or page.
And since the default setting for sites is to allow everyone to share, the amount of sharing links can start to add up. There is a way to see the different sharing links on your site. You can go into each individual list or library’s permissions and view the sharing links.
This can be tedious if you have a large site or many sites. Enter PowerShell. You can run a report to not only find where the sharing links are but also who the links have been shared with and what permissions those links give the users. The script will output the information to a CSV file for review. If needed, you can delete the sharing links if you no longer want them to be used.
You can download the script from GitHub.