{"id":26776,"date":"2024-02-21T08:10:33","date_gmt":"2024-02-21T08:10:33","guid":{"rendered":"https:\/\/www.insentragroup.com\/nz\/?p=26776"},"modified":"2024-12-06T00:21:28","modified_gmt":"2024-12-06T00:21:28","slug":"how-to-activate-labels-on-groups-and-sites-teams-m365-groups-spo-sites","status":"publish","type":"post","link":"https:\/\/www.insentragroup.com\/nz\/insights\/geek-speak\/secure-workplace\/how-to-activate-labels-on-groups-and-sites-teams-m365-groups-spo-sites\/","title":{"rendered":"How to Activate Labels on Groups and Sites \u00a0(Teams, M365 Groups, SPO sites)"},"content":{"rendered":"\n<p>Sensitivity labels are a great feature of M365 Information Protection to ensure that your data is classified and protected. However, you have to enable this function first before you can start using it.&nbsp;<\/p>\n\n\n\n<p>In this blog post, we will go through the step-by-step process of activating sensitivity labels so you can apply them on Teams, M365 Groups and SharePoint (SPO) sites.&nbsp;<\/p>\n\n\n\n<p>Let me start by giving you some context so that I can capture your attention here. Let\u2019s say you are a Compliance Administrator for your organisation. You login to the compliance portal to create labels for Groups and Sites, but you notice that the option to do so is greyed out (see below image).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"71\" src=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-16-1024x71.png\" alt=\"\" class=\"wp-image-26777\" srcset=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-16-1024x71.png 1024w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-16-300x21.png 300w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-16-768x53.png 768w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-16.png 1309w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Bummer! What do you do now?&nbsp;<\/p>\n\n\n\n<p>Well, you use the \u201cpower\u201d of PowerShell to accomplish your goal. So, without further ado, let me share the magical commands that will make you a Compliance Rockstar.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"1\">\n<li>Search for PowerShell ISE, right-click then run as admin&nbsp;<\/li>\n<\/ol>\n\n\n\n<p>To install Microsoft Graph PowerShell SDK modules, run the below commands:&nbsp;<\/p>\n\n\n\n<p>Install-Module Microsoft.Graph -Scope CurrentUser&nbsp;<\/p>\n\n\n\n<p>Install-Module Microsoft.Graph.Beta -Scope CurrentUser&nbsp;<br>Then click \u2018Yes to All\u2019 (*You may get this prompt a few times)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"735\" height=\"370\" src=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-17.png\" alt=\"\" class=\"wp-image-26778\" srcset=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-17.png 735w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-17-300x151.png 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Connect to your tenant using your admin credentials, then run the command:&nbsp;<br>Connect-MgGraph -Scopes &#8220;Directory.ReadWrite.All&#8221;<\/li>\n<\/ol>\n\n\n\n<p>When you see a pop-up box, enter your admin credentials. You will get the prompt below. Make sure you have the authority to give consent on behalf of your organisation, then click \u2018Accept\u2019.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"676\" height=\"676\" src=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-18.png\" alt=\"\" class=\"wp-image-26779\" srcset=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-18.png 676w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-18-300x300.png 300w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-18-150x150.png 150w\" sizes=\"(max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Next, run the below command:&nbsp;<br>$grpUnifiedSetting = Get-MgBetaDirectorySetting -Search DisplayName:&#8221;Group.Unified&#8221;&nbsp;<\/li>\n<\/ol>\n\n\n\n<p>If you do not see any values returned stating that EnableMIPLabels are set to True, you would need to run other commands as specified below:<\/p>\n\n\n\n<p><strong>i.<\/strong> Connect-AzureAD, Enter admin credentials to sign-in<\/p>\n\n\n\n<p><strong>ii.<\/strong> Get-AzureADDirectorySettingTemplate&nbsp;<\/p>\n\n\n\n<p><strong>iii.<\/strong> $TemplateId = (Get-AzureADDirectorySettingTemplate | where { $_.DisplayName -eq &#8220;Group.Unified&#8221; }).Id&nbsp;<\/p>\n\n\n\n<p>$Template = Get-AzureADDirectorySettingTemplate | where -Property Id -Value $TemplateId -EQ<\/p>\n\n\n\n<p><strong>iv.<\/strong> $Setting = $Template.CreateDirectorySetting()&nbsp;<\/p>\n\n\n\n<p><strong>v.<\/strong> $Setting[&#8220;UsageGuidelinesUrl&#8221;] = &#8220;https:\/\/guideline.example.com&#8221;&nbsp;<\/p>\n\n\n\n<p>$Setting[&#8220;EnableMIPLabels&#8221;] = &#8220;True&#8221;<\/p>\n\n\n\n<p><strong>vi.<\/strong> New-AzureADDirectorySetting -DirectorySetting $Setting&nbsp;<\/p>\n\n\n\n<p><strong>vii.<\/strong> $Setting.Values&nbsp;<\/p>\n\n\n\n<p>In the image below, you can see that the EnableMIPLabels has been set to True.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"529\" src=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-19-1024x529.png\" alt=\"\" class=\"wp-image-26780\" style=\"width:610px;height:auto\" srcset=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-19-1024x529.png 1024w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-19-300x155.png 300w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-19-768x397.png 768w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-19.png 1054w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now, we have performed all the steps to make sure that the option to configure labels for Groups is enabled. To verify the successful completion of the process we did, I have refreshed the page and can now see the option has been enabled (see image below).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"80\" src=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-20-1024x80.png\" alt=\"\" class=\"wp-image-26781\" srcset=\"https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-20-1024x80.png 1024w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-20-300x23.png 300w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-20-768x60.png 768w, https:\/\/www.insentragroup.com\/nz\/wp-content\/uploads\/sites\/18\/2024\/02\/image-20.png 1050w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Voila! I hope this guide saved you the time and the headache of going through multiple links just to activate sensitivity labels. For more information on upping your Information and Data Security game, <a href=\"https:\/\/www.insentragroup.com\/nz\/contact\/\" target=\"_blank\" rel=\"noreferrer noopener\">reach out to us<\/a> today to start a conversation on how Insentra can strengthen your data security architecture.&nbsp;<\/p>\n\n\n\n<p>Until next time, hasta-la-vista!&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sensitivity labels protect content in SharePoint and Microsoft Teams sites and Microsoft 365 groups. Follow this 3-step guide to activate the label function. <\/p>\n","protected":false},"author":9,"featured_media":26789,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[20],"tags":[],"class_list":["post-26776","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-secure-workplace","entry"],"_links":{"self":[{"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts\/26776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/comments?post=26776"}],"version-history":[{"count":3,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts\/26776\/revisions"}],"predecessor-version":[{"id":27154,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/posts\/26776\/revisions\/27154"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/media\/26789"}],"wp:attachment":[{"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/media?parent=26776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/categories?post=26776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insentragroup.com\/nz\/wp-json\/wp\/v2\/tags?post=26776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}