Jun 20 2022 01:15 PM - edited Jun 20 2022 01:24 PM
Hi,
How can I change the default settings for Microsoft 365 groups so when a new group gets created by default it doesn't appear in GAL?
I don't want to do it per group so the below command doesn't fulfil what I'm looking for:
Set-UnifiedGroup -Identity "Legal Department" -HiddenFromAddressListsEnabled $true
Thanks
Jun 20 2022 01:43 PM - edited Jun 20 2022 01:59 PM
Been long since I tested out what Tony's writes in this article, but might shed some light on your issue https://office365itpros.com/2021/07/08/how-hide-teams-enabled-groups-from-exchange-online/
Btw, I had to test it using TAC and the HiddenFromAddressListsEnabled turned out: False
When using New-Team cmdlet HiddenFromAddressListsEnabled turned out: True
Just added for some context as it seems to still be the case.
Jun 20 2022 02:15 PM - edited Jun 20 2022 02:16 PM
Thanks Christian, Tony's solution is a mass update on existing M365 groups that should be done periodically and it applies same settings on all groups (hidden from Gal or visible in GAL).
I'm looking for changing the default settings across our tenant so no matter where the groups get created (MS Teams desktop, Admin Center, PowerShell, ... ) always the email address should be hidden in GAL and if a group should be appeared in GAL we manually make it visible.
Jun 20 2022 02:35 PM