
Explanation:
< GroupA: # User1, Group1, Group2, and Group3 only
GroupB: # User1, Group1, Group2, and Group4 only
According to the Microsoft Identity and Access Administrator (SC-300) Official Study Guide and the Microsoft Learn module "Manage groups in Azure Active Directory", group nesting rules in Azure AD depend on group type and membership type.
* GroupA is a Security group with an Assigned membership type.
* In Azure AD, security groups (whether assigned, dynamic user, or dynamic device) can contain users, devices, and other security groups as members.
* However, Microsoft 365 groups cannot be added to a security group because Microsoft 365 groups include collaborative services (SharePoint, Teams, Planner) that rely on unique membership and ownership models.
Therefore, GroupA (security group) can include:
* User1 (user) #
* Group1 (security - assigned) #
* Group2 (security - dynamic user) #
* Group3 (security - dynamic device) #
* # Group4 (Microsoft 365 group) - not allowed in a security group.
# Correct composition for GroupA: User1, Group1, Group2, and Group3 only.
* GroupB is a Microsoft 365 group with an Assigned membership type.
* Microsoft 365 groups can include users and security groups as members, but cannot include other Microsoft 365 groups (nested Microsoft 365 groups are not supported).
* So GroupB can include:
* User1 (user) #
* Group1 (security - assigned) #
* Group2 (security - dynamic user) #
* # Group3 (dynamic device) - device groups can't be members of M365 groups.
* Group4 (Microsoft 365 group) # - nesting M365 groups is not supported.
# Correct composition for GroupB: User1, Group1, Group2, and Group4 only.