Forum Discussion
mgmjtech2120
May 30, 2022Copper Contributor
Script to retrieve Teams non members
Hello,
Issue:
We have seen users breaking permissions from the Teams site (documents, folder, etc.) and adding users directly to the document library or folders.
I found a script that can search for all Microsoft Team owners, and members, but not non-members that have unique permissions to a folder or library.
Is there a script or PowerShell to retrieve users that are non Microsoft team member, but have unique permissions to MS Teams (library/folder/file?
- I'm sure there is somewhere, but I'm simply going to add what you need to use to avoid these scenarios. Sensitivity labels for containers (sites, groups, teams).
For this particular use case the bottom one.
-Privacy (public or private) of teams sites and Microsoft 365 groups
-External user access
-External sharing from SharePoint sites
-Access from unmanaged devices
-Authentication contexts (in preview)
-Default sharing link for a SharePoint site (PowerShell-only configuration)
-In preview: Site sharing settings (PowerShell-only configuration)
https://docs.microsoft.com/en-us/microsoft-365/compliance/sensitivity-labels-teams-groups-sites?view=o365-worldwide- mgmjtech2120Copper ContributorI have taken the measures (mentioned above) when I took over the Teams admin. Unfortunately, it was too late. The people that deploy teams didn't think of these measures when it was deployed to production. Now I have to identify those unique permissions. If there is a script out there that can identify the unique permissions on all MS team sites, please let me know. Thanks!