SOLVED
Home

Hide Group email from global address list

%3CLINGO-SUB%20id%3D%22lingo-sub-4566%22%20slang%3D%22en-US%22%3EHide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-4566%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20some%20o365%20groups%20created%20though%20sds%20for%20classroom.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20groups%20are%20private%20but%20they%20appear%20in%20the%20global%20address%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20prevent%20this%20and%20hide%20them%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-4566%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGroups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-394385%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394385%22%20slang%3D%22en-US%22%3Ethx%2C%20we'll%20give%20this%20a%20try%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-393886%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-393886%22%20slang%3D%22en-US%22%3EUsing%20the%20attribute%20msexchhidefromaddresslists%20set%20to%20true%20Will%20hide%20them!%3CBR%20%2F%3EHidefromexchangeclients%20attribute%20will%20hide%20it%20from%20the%20outlook%20interface%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-393846%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-393846%22%20slang%3D%22en-US%22%3E%3CP%3Eis%20it%20possible%20to%20hide%20the%20Groups%20from%20the%20GAL%20but%20still%20be%20able%20to%20see%20the%20Group%20via%20the%20Group%20Browsing%20funcionality%20in%20Outlook%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-327937%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-327937%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20post%2C%20Thanks!%20I%20am%20now%20using%20this%20to%20audit%20my%20365%20Groups.%20I%20found%20several%20users%20were%20creating%20groups%20before%20we%20locked%20it%20down.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-209286%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-209286%22%20slang%3D%22en-US%22%3E%3CP%3EGet-UnifiedGroup%20-ResultSize%3AUnlimited%20%7C%20Set-UnifiedGroup%20-HiddenFromAddressListsEnabled%3A%24true%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20will%20bulk%20hide%20all%20groups.%20Less%20daunting%20to%20unhide%20one%20or%20two%20if%20a%20customer%20calls.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-205471%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-205471%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20you%20elaborate%20on%20this%20process%3F%3C%2FP%3E%3CP%3E%3CSPAN%3E%22Then%20use%20get-content%20or%20import-csv%20and%20use%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Eset-unifiedgroup%20-%3C%2FEM%3E%3CEM%3EHiddenFromAddressListsEnabled%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%20%24true%20property%20for%20them%20all%20at%20once.%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWhat%20is%20the%20full%20command%20you%20would%20use%20with%20import-csv%2C%20for%20example.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-185425%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-185425%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F17756%22%20target%3D%22_blank%22%3E%40Jeffrey%20Allen%3C%2FA%3E%26nbsp%3Byou%20can%20also%20try%26nbsp%3BGet-UnifiedGroup%20%7C%20Where-Object%20%7B%24_.AccessType%20-eq%20'Private'%7D%20%7C%20Set-UnifiedGroup%20-HiddenFromAddressListsEnabled%20%24true%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20will%20hide%20all%20private%20groups%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-153901%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-153901%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%40Deleted%20for%20this!%26nbsp%3B%20I'll%20give%20it%20a%20try.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-153421%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-153421%22%20slang%3D%22en-US%22%3E%3CP%3EYour%20best%20bet%20for%20accomplishing%20this%20en-masse%20is%20to%20export%20the%20groups%20via%20PS%20and%20put%20the%20ones%20you%20want%20to%20hide%20into%20a%20CSV%20or%20txt%20file%20with%20the%20ID%20or%20name%2C%20or%20Identity%20property.%26nbsp%3B%20Then%20use%20get-content%20or%20import-csv%20and%20use%20%3CEM%3Eset-unifiedgroup%20-%3C%2FEM%3E%3CEM%3EHiddenFromAddressListsEnabled%3C%2FEM%3E%26nbsp%3B%20%24true%20property%20for%20them%20all%20at%20once.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere's%20a%20CMDLET%20I%20use%20to%20do%20the%20export%20for%20my%20tenant.%26nbsp%3B%20(more%20info%20than%20you%20need%2C%20but%20it's%20nice%20to%20have%20a%20complete%20report%2C%20as%20well%20as%20see%20all%20of%20the%20attributes%20you%20can%20manage)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EGet-UnifiedGroup%20-resultsize%20unlimited%20%7C%20select%20DisplayName%2CName%2CIdentity%2CId%2CAccessType%2CManagedBy%2CRecipientType%2CRecipientTypeDetails%2CMailTip%2CGroupMemberCount%2CGroupExternalMemberCount%2CPrimarySmtpAddress%2CModerationEnabled%2CHiddenFromAddressListsEnabled%2CIsMailboxConfigured%2CManagedByDetails%2CNotes%2CSharePointSiteUrl%2CSharePointDocumentsUrl%2CSharePointNotebookUrl%2CWelcomeMessageEnabled%2CAutoSubscribeNewMembers%2CAlwaysSubscribeMembersToCalendarEvents%2CCalendarMemberReadOnly%2CCalendarUrl%2CHiddenGroupMembershipEnabled%2CInboxUrl%2CClassification%2CGroupPersonification%2CYammerEmailAddress%2CAllowAddGuests%2CWhenSoftDeleted%2CSendModerationNotifications%2CModeratedBy%2CGroupType%2CIsDirSynced%2CAcceptMessagesOnlyFrom%2CAcceptMessagesOnlyFromDLMembers%2CAcceptMessagesOnlyFromSendersOrMembers%2CAdministrativeUnits%2CAlias%2CGrantSendOnBehalfTo%2CPoliciesIncluded%2CPoliciesExcluded%2CEmailAddressPolicyEnabled%2CIsExternalResourcesPublished%2CProvisioningOption%2CConnectorsEnabled%2CIsMembershipDynamic%20%7C%20export-csv%20.%5CO365GroupsReport.csv%20-NoTypeInformation%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-150836%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-150836%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F67%22%20target%3D%22_blank%22%3E%40Christophe%20Fiessinger%3C%2FA%3E%2C%20is%20there%20a%20way%20to%20bulk%20hide%20private%20groups.%26nbsp%3B%20The%20command%20listed%20below%20works%20for%20one%20at%20a%20time.%26nbsp%3B%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-148403%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-148403%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20also%20looking%20for%20a%20way%20to%20hide%20the%20email%20address%20of%20an%20Office%20365%20Group.%26nbsp%3B%20I%26nbsp%3Bwas%20also%20hoping%20to%20find%20a%26nbsp%3Bway%20to%20forward%20emails%20sent%20to%20an%20Office%20365%20Group%20email%20address%20to%20a%20different%20user%2C%20however%2C%20there%20doesn't%20appear%20to%20be%20a%20way%20to%20do%20this.%26nbsp%3B%20Restricting%20who%20can%20send%20to%20the%20group%20would%20be%20a%20second%20option.%20I%20restricted%20sending%20to%20the%20Office%20365%20group%20to%20a%20specific%20group%20that%20I%20am%20not%20a%20member%20of.%26nbsp%3B%20I%20sent%20a%20test%20email%20to%20this%20group%20and%20it%20did%20not%20reach%20the%20group%2C%20however%2C%20I%20did%20not%20receive%20any%20sort%20of%20notice%20that%20the%20email%20did%20not%20go%20through%20to%20the%20group.%26nbsp%3B%20I%20was%20expecting%20either%20a%20message%20at%20the%20time%20of%20sending%20or%20a%20bounce%20back%20message.%26nbsp%3B%20I%20would%20want%20the%20person%20sending%20to%20a%20restricted%20group%20to%20receive%20some%20sort%20of%20message.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-130091%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-130091%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20could%20actually%20restrict%20sending%20messages%20to%20a%20particular%20group%20to%20only%20designated%20people%3C%2FP%3E%0A%3CP%3EUsing%20PS%3C%2FP%3E%0A%3CP%3ESet-UnifiedGroup%20%3CGROUP%3E%20-AcceptMessagesOnlyFromSendersOrMembers%20%3CGROUP%3E%3C%2FGROUP%3E%3C%2FGROUP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-93158%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-93158%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20if%20I%20wanted%20to%20prevent%20email%20from%20going%20to%20a%20group%20and%20have%20it%20redirected%20or%20auto%20reply%20to%20the%20sender%3F%3C%2FP%3E%3CP%3EProblem%20is%20we%20have%20an%20email%20group%20centraldispatch~%20and%20it's%20very%20similar%20to%20Centralizeddispatch~%20so%20people%20are%20finding%20and%20using%20the%20wrong%20one%20and%20now%20I%20fear%20it's%20saved%20to%20some%20of%20the%20users%20Outlook%20clients%20quick%20address%20autofills.%3C%2FP%3E%3CP%3EBest%2C%3CBR%20%2F%3EKevin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-43382%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-43382%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20not%20terribly%20fluent%20in%26nbsp%3BPowerShell%2C%20so%20please%20forgive%20me%20if%20the%20answer%26nbsp%3Bis%20obvious.%20It%20appears%20that%20this%20command%20applies%20to%20only%20a%20specific%20named%20Group.%20Can%20this%20be%20set%20as%20the%20default%20for%20the%20tenant%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3ESet-UnifiedGroup%20-Id%20Group%20%3CSTRONG%3E-HiddenFromAddressListsEnabled%20%24True%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5424%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5424%22%20slang%3D%22en-US%22%3E%3CP%3ENote%20that%20a%20group%20hidden%20from%20the%20GAL%20may%20appear%20in%20a%20few%20other%20places%20-%20notably%20planner.%20If%20your%20students%20are%20only%20using%20OWA%2FSP%20parts%20of%20groups%2C%20the%20method%20Christophe%20suggested%20is%20good.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-4569%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Group%20email%20from%20global%20address%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-4569%22%20slang%3D%22en-US%22%3E%3CP%3ESetwart%20you%20can%20do%20so%20via%20PowerShell%3A%20%3CEM%3ESet-UnifiedGroup%20-Id%20Group%20%3CSTRONG%3E-HiddenFromAddressListsEnabled%20%24True%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Stewart Davies
Occasional Contributor

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? 

16 Replies
Highlighted
Solution

Setwart you can do so via PowerShell: Set-UnifiedGroup -Id Group -HiddenFromAddressListsEnabled $True

Highlighted

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. 

Highlighted

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

Highlighted

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

Highlighted

You could actually restrict sending messages to a particular group to only designated people

Using PS

Set-UnifiedGroup <group> -AcceptMessagesOnlyFromSendersOrMembers <group>

Highlighted

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. 

Highlighted

@Christophe Fiessinger, is there a way to bulk hide private groups.  The command listed below works for one at a time.  Thanks!

Highlighted

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

Highlighted

Thanks @Deleted for this!  I'll give it a try.

Highlighted

@Jeffrey Allen you can also try Get-UnifiedGroup | Where-Object {$_.AccessType -eq 'Private'} | Set-UnifiedGroup -HiddenFromAddressListsEnabled $true

 

this will hide all private groups

Highlighted

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!

Highlighted

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.

Highlighted

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. 

Highlighted

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?

Highlighted
Using the attribute msexchhidefromaddresslists set to true Will hide them!
Hidefromexchangeclients attribute will hide it from the outlook interface
Highlighted
thx, we'll give this a try
Related Conversations