Exam MS-102 All QuestionsBrowse all questions from this exam
Question 6

HOTSPOT -

You have a Microsoft 365 subscription that contains the users shown in the following table.

You need to configure a dynamic user group that will include the guest users in any department that contains the word Support.

How should you complete the membership rule? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

    Correct Answer:

Discussion
Perycles

Correct answers (user.department -contains "Support") and (user.userType -eq "Guest") Be carrefull : Case Sensitive

Blixa

Nope, not case sensitive

4f2e7e3

Was in Exam 27-6-24

Tomtom11

https://learn.microsoft.com/en-us/entra/identity/users/groups-dynamic-membership Operator Syntax Not Equals -ne Equals -eq Not Starts With -notStartsWith Starts With -startsWith Not Contains -notContains Contains -contains Not Match -notMatch Match -match In -in Not In -notIn

Jslei

just tested this, both contains and match will work with department

imlearningstuffagain

Microsoft recommends to limit the Match clause and use Contains (ref: https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-rule-more-efficient)

gomezmax

Correct

nenge

This can be tricky if you're used to PowerShell syntax. In PS syntax, "-contains" would be incorrect as it checks for an item in a collection, not partial matches. In dynamic group syntax, it's the opposite. In dynamic group syntax, "-contains" matches partial strings, not items in collections. https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership#supported-expression-operators

vinch

Good answer is -eq -match

imlearningstuffagain

Nope, Microsoft recommends to limit the Match clause and use Contains (ref: https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-rule-more-efficient)