{"id":480,"date":"2025-05-05T19:48:56","date_gmt":"2025-05-05T17:48:56","guid":{"rendered":"https:\/\/www.busted.dk\/blog\/?p=480"},"modified":"2025-05-06T22:05:13","modified_gmt":"2025-05-06T20:05:13","slug":"enable-security-group-functionality-on-a-microsoft-365-group","status":"publish","type":"post","link":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/","title":{"rendered":"Enable Security Group Functionality on a Microsoft 365 Group"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today, I ran into a situation that many admins will recognize. I needed to deploy an Intune configuration policy to a specific group of users, but the group in question was a Microsoft 365 group. As some of you might know, Intune policies can only be deployed to security-enabled groups, and Microsoft 365 groups, by default, are not security-enabled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I could create a new security group and manually add all the same members. However, that\u2019s a maintenance headache, especially if the Microsoft 365 group changes regularly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A much simpler approach is to enable the security group flag on the existing Microsoft 365 group. This way you don\u2019t have to manage a duplicate group. The existing group can now be targeted like any other security group in Intune (or elsewhere in Azure AD).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How to Check if Your Group Is Security-Enabled<\/strong><br>You can check whether a group is security-enabled using PowerShell with the AzureAD module.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to Azure AD and check the group\u2019s properties: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Connect-AzureAD\n\nGet-AzureADGroup -ObjectId &lt;Your-Group-ObjectID&gt; | FL<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Look for the <strong><code>SecurityEnabled<\/code> <\/strong>property. If it&#8217;s set to <code><strong>False<\/strong><\/code>, you&#8217;ll need to enable it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How to Check if Your Group Is Security-Enabled<\/strong><br>To enable the security group capability, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Set-AzureADGroup -ObjectId &lt;Your-Group-ObjectId&gt; -SecurityEnabled $True<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it! After this change, your Microsoft 365 group can be used just like a traditional security group in Intune or any other Azure AD security-scoped setting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How to Check if Your Group Is Security-Enabled<\/strong><br>If you don&#8217;t know the ObjectId of the group then here\u2019s how to find it:<br><br>In PowerShell:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-AzureADGroup -SearchString &lt;Group-Name&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will return key details like <code>DisplayName<\/code>, <code>ObjectId<\/code>, and <code>Mail<\/code>.<br><br>In the Azure Portal:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to Azure Active Directory &gt; Groups.<\/li>\n\n\n\n<li>Search for your group by name.<\/li>\n\n\n\n<li>Click the group to open its properties.<\/li>\n\n\n\n<li>The Object ID is listed on the group&#8217;s Overview page.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Things to Keep in Mind<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enabling the SecurityEnabled property does not change the nature of the Microsoft 365 group. It still retains its collaboration features (Teams, shared mailbox, Planner, etc.).<\/li>\n\n\n\n<li>This approach avoids the need to duplicate groups and helps keep membership management streamlined.<\/li>\n\n\n\n<li>To run these commands and modify the group, you must have one of the following Azure AD roles:\n<ul class=\"wp-block-list\">\n<li>Global Administrator<\/li>\n\n\n\n<li>PrivilegedRole Administrator<\/li>\n\n\n\n<li>Groups Administrator<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You\u2019ll need to have the AzureAD module installed to run these commands.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, I ran into a situation that many admins will recognize. I needed to deploy an Intune configuration policy to a specific group of users, but the group in question was a Microsoft 365 group. As some of you might know, Intune policies can only be deployed to security-enabled groups, and Microsoft 365 groups, by &#8230; <a title=\"Enable Security Group Functionality on a Microsoft 365 Group\" class=\"read-more\" href=\"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/\" aria-label=\"Read more about Enable Security Group Functionality on a Microsoft 365 Group\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":616,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,47,15],"tags":[],"class_list":["post-480","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-entra","category-intune","category-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Enable Security Group Functionality on a Microsoft 365 Group - Peter Busted<\/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:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Peter\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/\"},\"author\":{\"name\":\"Peter\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"headline\":\"Enable Security Group Functionality on a Microsoft 365 Group\",\"datePublished\":\"2025-05-05T17:48:56+00:00\",\"dateModified\":\"2025-05-06T20:05:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/\"},\"wordCount\":379,\"publisher\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"image\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Enable-Security-Group-Functionality-on-a-Microsoft-365-Group-2-1.png\",\"articleSection\":[\"Entra\",\"Intune\",\"PowerShell\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/\",\"name\":\"Enable Security Group Functionality on a Microsoft 365 Group - Peter Busted\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Enable-Security-Group-Functionality-on-a-Microsoft-365-Group-2-1.png\",\"datePublished\":\"2025-05-05T17:48:56+00:00\",\"dateModified\":\"2025-05-06T20:05:13+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/enable-security-group-functionality-on-a-microsoft-365-group\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Enable-Security-Group-Functionality-on-a-Microsoft-365-Group-2-1.png\",\"contentUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Enable-Security-Group-Functionality-on-a-Microsoft-365-Group-2-1.png\",\"width\":1536,\"height\":755},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/\",\"name\":\"Peter Busted\",\"description\":\"A blog about my daily work with tech and more, running since 2008\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\",\"name\":\"Peter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"contentUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"width\":1790,\"height\":357,\"caption\":\"Peter\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\"},\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/author\\\/peter\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Enable Security Group Functionality on a Microsoft 365 Group - Peter Busted","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:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/","twitter_misc":{"Written by":"Peter","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/#article","isPartOf":{"@id":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/"},"author":{"name":"Peter","@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"headline":"Enable Security Group Functionality on a Microsoft 365 Group","datePublished":"2025-05-05T17:48:56+00:00","dateModified":"2025-05-06T20:05:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/"},"wordCount":379,"publisher":{"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"image":{"@id":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/#primaryimage"},"thumbnailUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/05\/Enable-Security-Group-Functionality-on-a-Microsoft-365-Group-2-1.png","articleSection":["Entra","Intune","PowerShell"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/","url":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/","name":"Enable Security Group Functionality on a Microsoft 365 Group - Peter Busted","isPartOf":{"@id":"https:\/\/www.busted.dk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/#primaryimage"},"image":{"@id":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/#primaryimage"},"thumbnailUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/05\/Enable-Security-Group-Functionality-on-a-Microsoft-365-Group-2-1.png","datePublished":"2025-05-05T17:48:56+00:00","dateModified":"2025-05-06T20:05:13+00:00","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.busted.dk\/blog\/enable-security-group-functionality-on-a-microsoft-365-group\/#primaryimage","url":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/05\/Enable-Security-Group-Functionality-on-a-Microsoft-365-Group-2-1.png","contentUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/05\/Enable-Security-Group-Functionality-on-a-Microsoft-365-Group-2-1.png","width":1536,"height":755},{"@type":"WebSite","@id":"https:\/\/www.busted.dk\/blog\/#website","url":"https:\/\/www.busted.dk\/blog\/","name":"Peter Busted","description":"A blog about my daily work with tech and more, running since 2008","publisher":{"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.busted.dk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d","name":"Peter","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","url":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","contentUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","width":1790,"height":357,"caption":"Peter"},"logo":{"@id":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp"},"url":"https:\/\/www.busted.dk\/blog\/author\/peter\/"}]}},"_links":{"self":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/comments?post=480"}],"version-history":[{"count":68,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/480\/revisions"}],"predecessor-version":[{"id":617,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/480\/revisions\/617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/media\/616"}],"wp:attachment":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/media?parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/categories?post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/tags?post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}