You are managing a Microsoft Entra ID tenant. You need to create a group that automatically includes all users from the Marketing department who are also located in the London office. If a user's department changes, they must be removed from the group automatically. Which group type and membership type should you use?
Trap 1: Security group with Assigned membership
Assigned membership requires manual intervention to add or remove users from the group. If a user moves from the Marketing department to Sales, they would remain in the group until an administrator manually removes them, which fails to meet the requirement for automatic removal based on attribute changes in the directory.
Trap 2: Microsoft 365 group with Assigned membership
Microsoft 365 groups are designed for collaboration with shared mailboxes and calendars, but assigned membership still relies on manual updates. This choice does not provide the automation needed to manage users based on their departmental or location attributes, leading to potential security gaps and stale access over time.
Trap 3: Microsoft 365 group with Dynamic Device membership
Dynamic Device membership evaluates the properties of devices, such as operating system or model, rather than user attributes like department or city. Using this membership type would prevent the group from correctly identifying and including the relevant employees, as it looks at hardware metadata instead of the identity profile.
- A
Security group with Assigned membership
Why wrong: Assigned membership requires manual intervention to add or remove users from the group. If a user moves from the Marketing department to Sales, they would remain in the group until an administrator manually removes them, which fails to meet the requirement for automatic removal based on attribute changes in the directory.
- B
Microsoft 365 group with Assigned membership
Why wrong: Microsoft 365 groups are designed for collaboration with shared mailboxes and calendars, but assigned membership still relies on manual updates. This choice does not provide the automation needed to manage users based on their departmental or location attributes, leading to potential security gaps and stale access over time.
- C
Security group with Dynamic User membership
Dynamic User membership allows for the creation of attribute-based rules that Microsoft Entra ID evaluates periodically. By setting a rule for both department and city, the system ensures that users are only members while they meet both criteria, providing the exact automation and security required for this organizational scenario.
- D
Microsoft 365 group with Dynamic Device membership
Why wrong: Dynamic Device membership evaluates the properties of devices, such as operating system or model, rather than user attributes like department or city. Using this membership type would prevent the group from correctly identifying and including the relevant employees, as it looks at hardware metadata instead of the identity profile.