An administrator is configuring a dynamic user group in a Microsoft Entra ID tenant. The group must automatically include all internal employees assigned to the Sales department. The group must exclude guest users and must not include any device objects. Which dynamic membership rule should the administrator use?
- (user.department -eq 'Sales') -and (user.userType -eq 'Member')Answer
- B(user.department -eq 'Sales') -and (user.userRole -eq 'Member')
- C(user.department -eq 'Sales') -and (device.deviceOwnership -eq 'Company')
- D(user.department = 'Sales') and (user.userType = 'Member')
Answer
The dynamic membership rule containing '(user.department -eq 'Sales') -and (user.userType -eq 'Member')'
The rule using the format '(user.department -eq 'Sales') -and (user.userType -eq 'Member')' is correct because it uses valid Entra ID user attributes ('user.department' and 'user.userType'), correctly distinguishes internal employees ('Member') from guest users ('Guest'), and follows the required OData query syntax with hyphenated operators ('-eq' and '-and').
Step-by-Step Solution
Key Concept
Microsoft Entra ID dynamic group membership rules require valid OData properties and syntax, and cannot mix user and device objects.