Hi @Nani Ramos ,
- In Office 365/SharePoint Online, the user's account(UPN) is their email address. Cannot be filtered directly through WorkEmail.
Powershell to filter all site collection owners: $AdminCenterURL = "https://domain-admin.sharepoint.com/"
$user="xyza@keyman .onmicrosoft.com" #Connect to SharePoint Online
Connect-SPOService -url $AdminCenterURL -Credential (Get-Credential)
#Get Site owners of all site collections
Get-SPOSite -Filter "Owner -like '$($user)'" | Select URL, Owner
2.After my internal and external search and testing, could not achieve filter owners of all site collections that owners are M365 group.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.