The Get-MgGroupOwnerInfo function queries Microsoft Entra ID via the Microsoft Graph API
to return the owners of each group.
Results can be filtered by a specific group ID
or display name, and are exported to Excel by default.Groups with no owners are included in the output with an empty owner list, which is
useful for identifying groups that lack an accountable owner.Note: This function is named Get-MgGroupOwnerInfo to avoid conflict with the built-in
Microsoft Graph PowerShell cmdlet Get-MgGroupOwner.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.