Microsoft 365 Administrator Expert MS-102 Practice Question
Your organization uses Microsoft Entra ID. You are configuring a dynamic Microsoft 365 group that must automatically include all internal users whose Department attribute is set to Marketing. External B2B guest accounts must be excluded. You need to define a membership rule that meets these requirements and is fully supported for dynamic groups. Which rule syntax should you use?
(user.department -eq "Marketing") and (user.userType -eq "Member")
user.department -eq "Marketing"
(user.department -eq "Marketing") and (user.objectType -eq "User")
(user.department -eq "Marketing") and (user.userType -ne "Guest")
Dynamic group membership in Microsoft Entra uses user attributes and the operators -eq or -ne in a single expression or combined with logical connectors such as and. An internal account has the user.userType value Member, while a B2B guest has the value Guest. Therefore, combining the Department check with a second check that explicitly requires userType to equal Member guarantees that only internal Marketing users are added.
Expressions that omit the userType condition would include both Members and Guests in the Marketing department, and using objectType is unsupported for dynamic rules. Using user.userType -ne "Guest" would work today but could unintentionally include any future userType values other than Guest, so it is not the most precise or recommended approach.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a dynamic Microsoft 365 group?
Open an interactive chat with Bash
What does user.userType indicate in Microsoft Entra ID?
Open an interactive chat with Bash
Why is using objectType unsupported in dynamic group rules?
Open an interactive chat with Bash
Microsoft 365 Administrator Expert MS-102
Deploy and manage a Microsoft 365 tenant
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .