{"id":20786,"date":"2022-09-28T19:21:54","date_gmt":"2022-09-28T18:21:54","guid":{"rendered":"http:\/\/healthmedicinet.com\/business\/consider-azure-ad-group-based-licensing-for-office-365-users\/"},"modified":"2022-09-28T19:21:54","modified_gmt":"2022-09-28T18:21:54","slug":"consider-azure-ad-group-based-licensing-for-office-365-users","status":"publish","type":"post","link":"https:\/\/healthmedicinet.com\/business\/consider-azure-ad-group-based-licensing-for-office-365-users\/","title":{"rendered":"Consider Azure AD group-based licensing for Office 365 users"},"content":{"rendered":"<section class=\"section main-article-chapter\" data-menu-title=\"How to start with Azure AD group-based licensing\">\n<h3 class=\"section-title\"><i class=\"icon\" data-icon=\"1\" \/>How to start with Azure AD group-based licensing<\/h3>\n<p>To start with the group-based licensing, the administrator creates a group or uses an existing group from their on-premises Active Directory<\/a> or a security group in Azure. With groups in Azure AD, an administrator can choose either create a dynamic group or a static group.<\/p>\n<p>In a static group, the administrators must maintain the members through manual assignment of users, which can be done through Active Directory or PowerShell.<\/p>\n<p>In a dynamic group, users can be automatically assigned membership based on specific rules that IT makes with the rule builder in the Azure portal. The tool makes it easy to form rules with expressions. The following are examples of expressions used to build dynamic groups.<\/p>\n<p>A group membership based on department number information included in the user properties would look like this:<\/p>\n<pre><span>user.department -in [\"50001\",\"50002\",\"50003\",\"50005\",\"50006\",\"50007\",\"50008\",\"50016\",\"50020\",\"50024\",\"50038\",\"50039\",\"51100\"]<\/span><\/pre>\n<p>or<\/p>\n<pre><span>user.department -eq \"Sales\"<\/span><\/pre>\n<p>or<\/p>\n<pre><span>user.department \u2013eq \"Marketing\" \u2013and user.country \u2013eq \"US\"<\/span><\/pre>\n<p>A group membership based on the display name that matches an expression would look like this:<\/p>\n<pre><span>user.displayName -match \"Da.*\"<\/span><\/pre>\n<p>A group membership for all users within the organization would look like this:<\/p>\n<pre><span>user.objectId -ne null<\/span><\/pre>\n<figure class=\"main-article-image full-col\" data-img-fullsize=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineimages\/chouffani_azure_ad_group_licensing_1.jpg\">\n  <img data-src=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineimages\/chouffani_azure_ad_group_licensing_1_mobile.jpg\" class=\"lazy\" data-srcset=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineimages\/chouffani_azure_ad_group_licensing_1_mobile.jpg 960w,https:\/\/cdn.ttgtmedia.com\/rms\/onlineimages\/chouffani_azure_ad_group_licensing_1.jpg 1280w\" alt=\"Azure AD group\" height=\"298\" width=\"560\" \/><figcaption>\n   <i class=\"icon pictures\" data-icon=\"z\" \/>An example of a group generated in Azure AD.<br \/>\n  <\/figcaption><\/figure>\n<p>After selecting the group, the administrator can assign available licenses. After selecting a license, the administrator can make additional modifications to add or remove features or remove some of the services.<\/p>\n<figure class=\"main-article-image full-col\" data-img-fullsize=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineimages\/chouffani_azure_ad_group_licensing_2.jpg\">\n  <img data-src=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineimages\/chouffani_azure_ad_group_licensing_2_mobile.jpg\" class=\"lazy\" data-srcset=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineimages\/chouffani_azure_ad_group_licensing_2_mobile.jpg 960w,https:\/\/cdn.ttgtmedia.com\/rms\/onlineimages\/chouffani_azure_ad_group_licensing_2.jpg 1280w\" alt=\"review license options menu\" height=\"602\" width=\"560\" \/><figcaption>\n   <i class=\"icon pictures\" data-icon=\"z\" \/>After selecting the license for a service, administrators can make additional adjustments in the license options menu.<br \/>\n  <\/figcaption><\/figure>\n<p>Administrators can also use the Microsoft Graph API and PowerShell<\/a> to assign users to groups that get a specific set of licenses. The Graph Explorer is available to test the commands.<\/p>\n<p>To assign a set of licenses to a security group, the following post-based command can be sent via Microsoft Graph API<\/a>. The command requires the group unique identifier and the SKU IDs from Microsoft:<\/p>\n<pre><span>POST https:\/\/graph.microsoft.com\/v1.0\/groups\/1ad75eeb-7e5a-4367-a493-9214d90d54d0\/assignLicense<br \/> Content-type: application\/json<br \/> {<br \/> \u00a0\"addLicenses\": [<br \/> \u00a0\u00a0{<br \/> \u00a0\u00a0\u00a0\"disabledPlans\": [ \"11b0131d-43c8-4bbb-b2c8-e80f9a50834a\" ],<br \/> \u00a0\u00a0\u00a0\"skuId\": \"c7df2760-2c81-4ef7-b578-5b5392b571df\"<br \/> \u00a0\u00a0},<br \/> \u00a0\u00a0{<br \/> \u00a0\u00a0\u00a0\"disabledPlans\": [ \"a571ebcc-fqe0-4ca2-8c8c-7a284fd6c235\" ],<br \/> \u00a0\u00a0\u00a0\"skuId\": \"sb05e124f-c7cc-45a0-a6aa-8cf78c946968\"<br \/> \u00a0\u00a0}<br \/> \u00a0],<br \/> \u00a0\"removeLicenses\": []<br \/> }<\/span><\/pre>\n<p>To display the list of groups available for licensing, run the following PowerShell command:<\/p>\n<pre><span>Get-MsolGroup -All | Where {$_.Licenses} | Select `<br \/> \u00a0\u00a0ObjectId, `<br \/> \u00a0\u00a0DisplayName, `<br \/> \u00a0\u00a0@{Name=\"Licenses\";Expression={$_.Licenses | Select -ExpandProperty SkuPartNumber}}<\/span><\/pre>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>How to start with Azure AD group-based licensing To start with the group-based licensing, the administrator creates a group or uses an existing group from their on-premises Active Directory or a security group in Azure. With groups in Azure AD, an administrator can choose either create a dynamic group or a static group. In a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-20786","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/healthmedicinet.com\/business\/wp-json\/wp\/v2\/posts\/20786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/healthmedicinet.com\/business\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/healthmedicinet.com\/business\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/healthmedicinet.com\/business\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/healthmedicinet.com\/business\/wp-json\/wp\/v2\/comments?post=20786"}],"version-history":[{"count":0,"href":"https:\/\/healthmedicinet.com\/business\/wp-json\/wp\/v2\/posts\/20786\/revisions"}],"wp:attachment":[{"href":"https:\/\/healthmedicinet.com\/business\/wp-json\/wp\/v2\/media?parent=20786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/healthmedicinet.com\/business\/wp-json\/wp\/v2\/categories?post=20786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/healthmedicinet.com\/business\/wp-json\/wp\/v2\/tags?post=20786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}