Lab 03: Assigning licenses using group membership

Lab scenario

Your organization has decided to use security groups in Microsoft Entra ID to manage licenses. You need to configure a new security group and assign a license to that group and verify group member license’s have been updated.

Estimated time: 25 minutes

Exercise 1 - Create a security group and add a user

Task 1 - Check to see if Delia Dennis has access to Office 365

  1. Launch a new InPrivate browser window.
  2. Connect to https://www.office.com.
  3. Select Sign in and connect as Delia Dennis.

    Setting Value
    Username DeliaD@your domain name.com
    Password Enter the password of the Global Admin from the Resources
  4. You should connect to the Office.com website, but see a message indicating you don’t have a license.

    Screen image the Office.com website with Delia Dennis logged in but no office applications are available, because no license is assigned.

  5. Close the browser window.

Task 2 - Create a security group in Microsoft Entra ID

  1. Browse to https://entra.microsoft.com.

  2. In the left navigation, under Identity, select Groups, then select All groups.
  3. In the Groups page, on the menu, select New group.
  4. Create a group using the following information:

    Setting Value
    Group type Security
    Group name sg-SC300-O365
    Membership type Assigned
    Owners Assign your own administrator account as the group owner
  5. Select the No members selected text under Members.
  6. Select Delia Dennis from the list of users.
  7. Select the Select button.

    Screen image displaying the New Group page with Group type, Group name, Owners, and Members highlighted

  8. Select the Create button.
  9. When complete, verify the group named sg-SC300-O365 is shown in the All groups list.

Task 3 - Assign a license to a group

  1. In the All groups list, select sg-SC300-O365.
  2. In the Marketing page, under Manage, select Licenses.
  3. On the menu, select + Assignments.
  4. In the update license assignments page, under Select licenses, review the list of available licenses and then select the check box for Office 365 E3.

    Tip - When multiple licenses are selected, you can use the Review license options menu to select a specific license and view the license option for that license.

    Screen image displaying licenses selected and assigned to a group. The review license menu is also selected displaying multiple selection options.

  5. Select Save.

Taks 4 - Confirm the Office 365 license

  1. Launch a new InPrivate browser window.
  2. Connect to https://www.office.com.
  3. Select Sign in and connect as Delia Dennis.

    Setting Value
    Username DeliaD@your domain name.com
    Password Enter the password of the Global Admin from the Resources
  4. You should connect to the Office.com website, and see no messages regarding license. All of the Office applications are available on the left.

    Screen image the Office.com website with Delia Dennis logged in with office applications available, because a license is assigned.

  5. Close the browser window.

Exercise 2 - Create an Microsoft 365 group in Microsoft Entra ID

Task 1 - Create the group

Part of your duties as an Microsoft Entra administrator is to create different types of groups. You need to create a new Microsoft 365 group for your organization’s sales department.

  1. Browse to https://entra.microsoft.com.

  2. In the left navigation, under Identity, select Groups, then select All Groups.

  3. In the Groups page, on the menu, select New group.

  4. Create a group using the following information:

    Setting Value
    Group type Microsoft 365
    Group name Northwest Sales
    Membership type Assigned
    Owners Assign your own administrator account as the group owner
    Members Alex Wilber and Bianca Pisani

    Screen image displaying the New Group page with Group type, Group name, Owners, and Members highlighted

  5. When complete, verify the group named Northwest sales is shown in the All groups list.

Exercise 3 - Creating a dynamic group with all users as members

Task 1 - Create the dynamic group

As your company grows, manually group management is too time consuming. Since standardizing the directory, you can now take advantage of dynamic groups. You must create a new dynamic group to ensure you’re ready for dynamic group creation in production.

  1. Sign in to the https://entra.microsoft.com with an account that is assigned the Global administrator or User administrator role in the tenant.

  2. Select Identity.

  3. Under Groups, select All groups, and then select New group.

  4. On the New Group page, under Group type, select Security.

  5. In the Group name box, enter SC300-myDynamicGroup.

  6. Select the Membership type menu and then select Dynamic User.

  7. Select an Owner for the group.

  8. Under Dynamic user members, select Add dynamic query.

  9. On the right above the Rule syntax box, select Edit.

  10. In the Edit rule syntax pane, enter the following expression in the Rule syntax box:

    user.objectid -ne null
    

    Warning - the user.objectid is case sensitive.

  11. Select OK. The rule appears in the Rule syntax box.

Screen image displaying the dynamic group membership rules page with rule syntax highlighted

  1. Select Save. The new dynamic group will now include B2B guest users as well as member users.

  2. On the New group page, select Create to create the group.

Task 2 - Verify the members have been added

Note - The population of Dynamic group membership may take up to 15 minutes.

  1. Select on the Home Microsoft Entra admin center.
  2. Launch Identity.
  3. In the Groups menu Select on All groups.
  4. In the filter box type SC300 and your newly created group will be listed.
  5. Select on SC300-myDynamicGroup to open the group.
  6. Notice that it shows that it contains 30+ *Direct members.
  7. Select on Members in the Manage menu.
  8. Review the members.

Task 3 - Experiment with alternate rules

  1. Try making a group with only Guest users:

    • (user.objectid -ne null) and (user.userType -eq “Guest”)
  2. Try make a group with only Members of the Microsoft Entra users.

    • (user.objectid -ne null) and (user.userType -eq “Member”)