Exercise - explore dynamic groups

Completed

Create a dynamic group with all users as members

  1. Sign in to the Microsoft Entra admin center 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 All company users dynamic group.

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

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

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

  9. In the Edit rule syntax pane, enter the following expression in the Rule syntax box: user.objectId -ne null

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

    Screenshot of the dynamic group membership rules screen with rule syntax highlighted. Exist in Microsoft Entra ID.

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

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