Forum Discussion
Stewart Davies
Aug 04, 2016Copper Contributor
Hide Group email from global address list
I have some o365 groups created though sds for classroom. The groups are private but they appear in the global address list. Is there a way to prevent this and hide them?
- Aug 04, 2016
Setwart you can do so via PowerShell: Set-UnifiedGroup -Id Group -HiddenFromAddressListsEnabled $True
Kadir_Ansari
Oct 02, 2020Copper Contributor
Please open PowerShell ISE with Administrator.
- $UserCredential = Get-Credential
- $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic –AllowRedirection
- Import-PSSession $Session
- Import-PSSession $Session -DisableNameChecking
- Set-UnifiedGroup -Identity "AffectedGroupName" -PrimarySmtpAddress "AffectedGroupEmailAddress" -HiddenFromExchangeClientsEnabled:$false