Forum Discussion

jean090681's avatar
jean090681
Copper Contributor
Aug 02, 2019

O365 groups with allow external senders to email this group

Hello Everyone, 

 

Need help with a cmdlet or a script to get a report of all the O365 Private groups in the tenant

to show Display name, alias, managedby, accesstype  and (allow external senders to email this group )

 

not sure how to get the information of groups with the option - enabled to get emails from external senders 

 

This is how far i got 

 

Get-UnifiedGroup | Where-Object {$_.AccessType -eq 'Private'} | Sort-Object whencreated | Format-Table displayname, alias, managedby, accesstype, 

 

any suggestion on how do i get the list of groups with enabled to get emails from external senders 

 

  • jean090681 How about running this in EXO PowerShell - 

    Get-UnifiedGroup -ResultSize Unlimited | Where-Object {$_.AccessType -eq 'Private'} | Sort-Object whencreated | Select displayname , alias , managedby , accesstype , RequireSenderAuthenticationEnabled |Export-Csv path\groupinfo.csv

     

    Cheers !

    Ankit Shukla

     

  • The attribute corresponding to the "allow external senders to email..." is called RequireSenderAuthenticationEnabled.

  • ankit shukla's avatar
    ankit shukla
    Iron Contributor

    jean090681 How about running this in EXO PowerShell - 

    Get-UnifiedGroup -ResultSize Unlimited | Where-Object {$_.AccessType -eq 'Private'} | Sort-Object whencreated | Select displayname , alias , managedby , accesstype , RequireSenderAuthenticationEnabled |Export-Csv path\groupinfo.csv

     

    Cheers !

    Ankit Shukla

     

Resources