Find all sites where specific AD groups are used

Frequent Contributor

Is there a PowerShell command for finding out where specific AD groups are used in SharePoint Online? We have several old AD groups that were used at one time and added to SharePoint groups for permissions. I need to find out if they are still used anywhere so I can delete the ones that are not. Is there a PowerShell script, I'm guessing using Get-SPOUser, out there that will tell me what sites are still using a specific AD group in a SharePoint permissions group?

0 Replies