If you need to found out whitch groups (mailling groups) a contact is member of in Microsoft 365, then you case use these powershell commands:
1 2 3 4 5 6 7 8 |
$getsessions = Get-PSSession | Select-Object -Property State, Name $isconnected = (@($getsessions) -like '@{State=Opened; Name=ExchangeOnlineInternalSession*').Count -gt 0 If ($isconnected -ne "True") { Connect-ExchangeOnline } Get-Recipient -Filter "Members -eq '$dn'" |
Replace [email protected] with yours mail address.