{"id":863,"date":"2019-02-26T23:15:05","date_gmt":"2019-02-26T23:15:05","guid":{"rendered":"https:\/\/regroove.ca\/stellark\/?p=863"},"modified":"2023-02-24T18:38:19","modified_gmt":"2023-02-24T18:38:19","slug":"hide-o365-groups-from-outlook","status":"publish","type":"post","link":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/","title":{"rendered":"Hide O365 Groups from Outlook"},"content":{"rendered":"\n<p>If you&#8217;ve got Office 365 Groups kicking about in your Outlook profile but you&#8217;d really rather not see them or have them there then use power shell to &#8220;Hide&#8221; them.<\/p>\n\n\n\n<p>There are two ways to &#8220;Hide&#8221; an Office 365 group; 1) from the GAL or 2) from the Exchange Client. <\/p>\n\n\n\n<p>First, you will need to download the latest Exchange Online Power Shell module. You can get this from your Exchange Admin Center in Office 365 -&gt; Hybrid then run the provided Function to connect to Exchange Online (see below)<\/p>\n\n\n\n<p class=\"has-very-light-gray-color has-vivid-cyan-blue-background-color has-text-color has-background\">NOTE: You need to download this module using &#8220;Internet Explorer or Edge&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"410\" src=\"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg\" alt=\"\" class=\"wp-image-864\" srcset=\"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg 814w, https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule-300x151.jpg 300w, https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule-768x387.jpg 768w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n<p>#Modify the UPN only in Function<\/p>\n<p>function Connect-EXOPSSession {<\/p>\n<p>    param(<br \/>\n        # Connection Uri for the Remote PowerShell endpoint<br \/>\n        [string] $ConnectionUri = &#8216;https:\/\/outlook.office365.com\/PowerShell-LiveId&#8217;,<\/p>\n<p>        # Azure AD Authorization endpoint Uri that can issue the OAuth2 access tokens<br \/>\n        [string] $AzureADAuthorizationEndpointUri = &#8216;https:\/\/login.windows.net\/common&#8217;,<\/p>\n<p>        # User Principal Name or email address of the user<br \/>\n        [string] $UserPrincipalName = &#8216;user@company.com&#8217;,<\/p>\n<p>        # PowerShell session options to be used when opening the Remote PowerShell session<br \/>\n        [System.Management.Automation.Remoting.PSSessionOption] $PSSessionOption = $null,<\/p>\n<p>        # User Credential to Logon<br \/>\n        [System.Management.Automation.PSCredential] $Credential = $null<br \/>\n    )<\/p>\n<p>        $modules = @(Get-ChildItem -Path &#8220;$($env:LOCALAPPDATA)\\Apps\\2.0&#8221; -Filter &#8220;Microsoft.Exchange.Management.ExoPowershellModule.manifest&#8221; -Recurse )<br \/>\n        $ModulePath = Join-Path $modules[0].Directory.FullName &#8220;Microsoft.Exchange.Management.ExoPowershellModule.dll&#8221;<br \/>\n        # $ExoPowershellModule = &#8220;Microsoft.Exchange.Management.ExoPowershellModule.dll&#8221;;<br \/>\n        # $ModulePath = [System.IO.Path]::Combine($PSScriptRoot, $ExoPowershellModule);<\/p>\n<p>        $global:ConnectionUri = $ConnectionUri;<br \/>\n        $global:AzureADAuthorizationEndpointUri = $AzureADAuthorizationEndpointUri;<br \/>\n        $global:UserPrincipalName = $UserPrincipalName;<br \/>\n        $global:PSSessionOption = $PSSessionOption;<br \/>\n        $global:Credential = $Credential;<\/p>\n<p>        Import-Module $ModulePath;<br \/>\n        $PSSession = New-ExoPSSession -UserPrincipalName $UserPrincipalName -ConnectionUri $ConnectionUri -AzureADAuthorizationEndpointUri $AzureADAuthorizationEndpointUri -PSSessionOption $PSSessionOption -Credential $Credential<\/p>\n<p>        if ($PSSession -ne $null) {<br \/>\n            Import-PSSession $PSSession -AllowClobber<\/p>\n<p>   }<br \/>\n}<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Once connected to Exchange Online run the following to &#8220;hide&#8221; a single group<\/p>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color\">Connect-EXOPSSession<\/p>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color\">Get-Unifiedgroup -identity &#8220;Group1&#8221; | Set-Unifiedgroup &#8220;Group1&#8221;  -HiddenFromExchangeClientsEnabled <\/p>\n\n\n\n<p>Check that the group is now hidden<\/p>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color\">Get-unifiedgroup -identity &#8220;Group1&#8221; | select DisplayName,Hidden*<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>This method can also be used to hide batches of groups from Exchange Clients using a CSV file OR you can also hide all groups entirely from the GAL with a one line powershell<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color\">\n\nConnect-EXOPSSession\n\n<\/p>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color\">Get-Unifiedgroup | Set-Unifiedgroup -HiddenFromAddressListsEnabled $True<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Happy Hiding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve got Office 365 Groups kicking about in your Outlook profile but you&#8217;d really rather not see them or have them there then use power shell to &#8220;Hide&#8221; them. There are two ways to &#8220;Hide&#8221; an Office 365 group; 1) from the GAL or 2) from the Exchange Client. First, you will need to &hellip; <a href=\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/\"><\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[61],"tags":[174,184,190],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hide O365 Groups from Outlook - Stephanie Kahlam<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hide O365 Groups from Outlook - Stephanie Kahlam\" \/>\n<meta property=\"og:description\" content=\"If you&#8217;ve got Office 365 Groups kicking about in your Outlook profile but you&#8217;d really rather not see them or have them there then use power shell to &#8220;Hide&#8221; them. There are two ways to &#8220;Hide&#8221; an Office 365 group; 1) from the GAL or 2) from the Exchange Client. First, you will need to &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/\" \/>\n<meta property=\"og:site_name\" content=\"Stephanie Kahlam\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-26T23:15:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T18:38:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg\" \/>\n<meta name=\"author\" content=\"Stephanie Kahlam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stephanie Kahlam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/\",\"url\":\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/\",\"name\":\"Hide O365 Groups from Outlook - Stephanie Kahlam\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg\",\"datePublished\":\"2019-02-26T23:15:05+00:00\",\"dateModified\":\"2023-02-24T18:38:19+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149\"},\"breadcrumb\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#primaryimage\",\"url\":\"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg\",\"contentUrl\":\"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg\",\"width\":814,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Stellark Home\",\"item\":\"https:\/\/regroove.ca\/stellark\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hide O365 Groups from Outlook\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/stellark\/#website\",\"url\":\"https:\/\/regroove.ca\/stellark\/\",\"name\":\"Stephanie Kahlam\",\"description\":\"Microsoft 365 and SMB.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/stellark\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149\",\"name\":\"Stephanie Kahlam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g\",\"caption\":\"Stephanie Kahlam\"},\"url\":\"https:\/\/regroove.ca\/stellark\/author\/skahlam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hide O365 Groups from Outlook - Stephanie Kahlam","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/","og_locale":"en_US","og_type":"article","og_title":"Hide O365 Groups from Outlook - Stephanie Kahlam","og_description":"If you&#8217;ve got Office 365 Groups kicking about in your Outlook profile but you&#8217;d really rather not see them or have them there then use power shell to &#8220;Hide&#8221; them. There are two ways to &#8220;Hide&#8221; an Office 365 group; 1) from the GAL or 2) from the Exchange Client. First, you will need to &hellip;","og_url":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/","og_site_name":"Stephanie Kahlam","article_published_time":"2019-02-26T23:15:05+00:00","article_modified_time":"2023-02-24T18:38:19+00:00","og_image":[{"url":"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg"}],"author":"Stephanie Kahlam","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stephanie Kahlam","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/","url":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/","name":"Hide O365 Groups from Outlook - Stephanie Kahlam","isPartOf":{"@id":"https:\/\/regroove.ca\/stellark\/#website"},"primaryImageOfPage":{"@id":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#primaryimage"},"image":{"@id":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#primaryimage"},"thumbnailUrl":"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg","datePublished":"2019-02-26T23:15:05+00:00","dateModified":"2023-02-24T18:38:19+00:00","author":{"@id":"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149"},"breadcrumb":{"@id":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#primaryimage","url":"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg","contentUrl":"https:\/\/regroove.ca\/stellark\/wp-content\/uploads\/sites\/3\/2019\/02\/EXOmodule.jpg","width":814,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/regroove.ca\/stellark\/2019\/02\/26\/hide-o365-groups-from-outlook\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Stellark Home","item":"https:\/\/regroove.ca\/stellark\/"},{"@type":"ListItem","position":2,"name":"Hide O365 Groups from Outlook"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/stellark\/#website","url":"https:\/\/regroove.ca\/stellark\/","name":"Stephanie Kahlam","description":"Microsoft 365 and SMB.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/stellark\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149","name":"Stephanie Kahlam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g","caption":"Stephanie Kahlam"},"url":"https:\/\/regroove.ca\/stellark\/author\/skahlam\/"}]}},"_links":{"self":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts\/863"}],"collection":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/comments?post=863"}],"version-history":[{"count":1,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts\/863\/revisions"}],"predecessor-version":[{"id":1408,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts\/863\/revisions\/1408"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/media?parent=863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/categories?post=863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/tags?post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}