Aug 04 2016 04:26 PM
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 04:38 PM
SolutionSetwart you can do so via PowerShell: Set-UnifiedGroup -Id Group -HiddenFromAddressListsEnabled $True
Aug 12 2016 09:23 AM
Note that a group hidden from the GAL may appear in a few other places - notably planner. If your students are only using OWA/SP parts of groups, the method Christophe suggested is good.
Feb 01 2017 02:20 PM
I'm not terribly fluent in PowerShell, so please forgive me if the answer is obvious. It appears that this command applies to only a specific named Group. Can this be set as the default for the tenant?
Set-UnifiedGroup -Id Group -HiddenFromAddressListsEnabled $True
Aug 03 2017 02:54 PM
What if I wanted to prevent email from going to a group and have it redirected or auto reply to the sender?
Problem is we have an email group centraldispatch~ and it's very similar to Centralizeddispatch~ so people are finding and using the wrong one and now I fear it's saved to some of the users Outlook clients quick address autofills.
Best,
Kevin
Nov 21 2017 02:38 AM
You could actually restrict sending messages to a particular group to only designated people
Using PS
Set-UnifiedGroup <group> -AcceptMessagesOnlyFromSendersOrMembers <group>
Jan 24 2018 08:45 AM
I am also looking for a way to hide the email address of an Office 365 Group. I was also hoping to find a way to forward emails sent to an Office 365 Group email address to a different user, however, there doesn't appear to be a way to do this. Restricting who can send to the group would be a second option. I restricted sending to the Office 365 group to a specific group that I am not a member of. I sent a test email to this group and it did not reach the group, however, I did not receive any sort of notice that the email did not go through to the group. I was expecting either a message at the time of sending or a bounce back message. I would want the person sending to a restricted group to receive some sort of message.
Jan 31 2018 08:50 AM
@Christophe Fiessinger, is there a way to bulk hide private groups. The command listed below works for one at a time. Thanks!
Feb 07 2018 09:44 AM
Your best bet for accomplishing this en-masse is to export the groups via PS and put the ones you want to hide into a CSV or txt file with the ID or name, or Identity property. Then use get-content or import-csv and use set-unifiedgroup -HiddenFromAddressListsEnabled $true property for them all at once.
Here's a CMDLET I use to do the export for my tenant. (more info than you need, but it's nice to have a complete report, as well as see all of the attributes you can manage)
Get-UnifiedGroup -resultsize unlimited | select DisplayName,Name,Identity,Id,AccessType,ManagedBy,RecipientType,RecipientTypeDetails,MailTip,GroupMemberCount,GroupExternalMemberCount,PrimarySmtpAddress,ModerationEnabled,HiddenFromAddressListsEnabled,IsMailboxConfigured,ManagedByDetails,Notes,SharePointSiteUrl,SharePointDocumentsUrl,SharePointNotebookUrl,WelcomeMessageEnabled,AutoSubscribeNewMembers,AlwaysSubscribeMembersToCalendarEvents,CalendarMemberReadOnly,CalendarUrl,HiddenGroupMembershipEnabled,InboxUrl,Classification,GroupPersonification,YammerEmailAddress,AllowAddGuests,WhenSoftDeleted,SendModerationNotifications,ModeratedBy,GroupType,IsDirSynced,AcceptMessagesOnlyFrom,AcceptMessagesOnlyFromDLMembers,AcceptMessagesOnlyFromSendersOrMembers,AdministrativeUnits,Alias,GrantSendOnBehalfTo,PoliciesIncluded,PoliciesExcluded,EmailAddressPolicyEnabled,IsExternalResourcesPublished,ProvisioningOption,ConnectorsEnabled,IsMembershipDynamic | export-csv .\O365GroupsReport.csv -NoTypeInformation
Feb 08 2018 09:16 AM
Thanks @Deleted for this! I'll give it a try.
Apr 20 2018 02:09 PM
@Jeffrey Allen you can also try Get-UnifiedGroup | Where-Object {$_.AccessType -eq 'Private'} | Set-UnifiedGroup -HiddenFromAddressListsEnabled $true
this will hide all private groups
Jun 18 2018 05:13 PM
Can you elaborate on this process?
"Then use get-content or import-csv and use set-unifiedgroup -HiddenFromAddressListsEnabled $true property for them all at once."
What is the full command you would use with import-csv, for example.
Thanks!
Jun 27 2018 04:17 AM
Get-UnifiedGroup -ResultSize:Unlimited | Set-UnifiedGroup -HiddenFromAddressListsEnabled:$true
This will bulk hide all groups. Less daunting to unhide one or two if a customer calls.
Jan 30 2019 05:33 AM
Great post, Thanks! I am now using this to audit my 365 Groups. I found several users were creating groups before we locked it down.
Apr 03 2019 07:03 AM - edited Apr 03 2019 07:04 AM
is it possible to hide the Groups from the GAL but still be able to see the Group via the Group Browsing funcionality in Outlook?
Apr 03 2019 07:48 AM
Oct 01 2020 11:29 PM
Jan 29 2021 08:39 AM
@Christophe Fiessinger I have a Office365 group mailbox, I checked the HiddenFromAddressListsEnabled proerty in powershell; it set to $True.
Also, I checked the Exchange Admin Center, it is checked mark.
Also, I let the GAL to be synced and downloaded in the Offline Address Book, but still this group mailbox show-up in the Address Book for Outlook.
Do you have any idea how I can fix this?
Thanks
Jan 29 2021 08:44 AM
Aug 04 2016 04:38 PM
SolutionSetwart you can do so via PowerShell: Set-UnifiedGroup -Id Group -HiddenFromAddressListsEnabled $True