Users Should Join Group Automatically? Create a Dynamic User Group

Published on:

Instead of manually managing group membership, Microsoft Entra ID allows you to create dynamic user groups.

These groups automatically add or remove users based on user attributes like:

  • department
  • job title
  • country
  • employee type

This is useful for:

  • onboarding automation
  • license assignment
  • Azure RBAC access control

Open Groups in Entra

Go to:

Entra ID > Groups

Then select:

New group

Microsoft Entra Groups overview page showing existing groups and the New group button

Create Dynamic User Group

Configure the group:

Group type: Security
Group name: GRP-CloudTrips-IT-Auto
Membership type: Dynamic User

Microsoft Entra group creation screen with Membership type Dynamic User selected

Define Membership Rule

Example rule for IT department users:

(user.department -eq "IT")

This rule determines which users are automatically added to the group.

Microsoft Entra dynamic membership rule editor showing condition syntax

Create the Group

Click:

Create

Entra evaluates users in the background and automatically adds matching users to the group.

Test Dynamic Group

To verify that the rule works correctly, create a new test user and assign the correct attribute.

Create Test User

Create a new user with:

  • Department = IT

Then check if the user is automatically added to the group.

Go to:

Entra ID > Groups > GRP-CloudTrips-IT-Auto > Members

Verify that the newly created user appears automatically in the list.

Microsoft Entra group members tab showing a newly created test user automatically added

Important Notes

  • requires Microsoft Entra ID P1 or P2 license
  • processing is asynchronous, not instant
  • depends fully on correct user attributes in Entra ID