Creating Dynamic User Groups in Microsoft 365

You are the administrator for contoso.com and the Global Administrator for contoso.onmicrosoft.com. You create users for all the domain users in contoso.onmicrosoft.com, and add the Department attribute (Sales, Marketing, Accounting). You want to create a group containing all users in Sales or Marketing. The group membership should always be up to date as new Sales and/or Marketing users are added to contoso.onmicrosoft.com. You wish to achieve this goal with as little administrative overhead as possible. What should you do? Select one option.

A. Create a new Group with the Membership Type "Dynamic User". Construct the query: (object.department -eq "Sales") -and (object.department -eq "Marketing")

B. Create a new Group with the Membership Type "Dynamic User". Construct the query: (user.department -eq "Sales") -or (user.department -eq "Marketing")

C. Create a new Group with the Membership Type "Dynamic User". Construct the query: (user.department -eq "Sales") -and (user.department -eq "Marketing")

D. Create a new Group with the Membership Type "Dynamic User". Construct the query: (object.department -eq "Sales") -or (object.department -eq "Marketing")

Why is option B the correct choice for achieving the goal?

Option B involves creating a new Group with the Membership Type "Dynamic User" and constructing the query: (user.department -eq "Sales") -or (user.department -eq "Marketing"). This query specifies that users with either "Sales" or "Marketing" departments should be included in the group. The use of the logical operator "or" ensures that users from both departments are considered, achieving the goal of having a group with all Sales and Marketing users. This dynamic membership will automatically update as new users are added to the specified departments, minimizing administrative overhead.

You are the administrator for contoso.com and the Global Administrator for contoso.onmicrosoft.com. You want to create a group containing all users in Sales or Marketing with as little administrative overhead as possible. What should you do? Option B is the correct choice for achieving the goal. By creating a new Group with the Membership Type "Dynamic User" and constructing the query: (user.department -eq "Sales") -or (user.department -eq "Marketing"), you can ensure that the group includes users from both Sales and Marketing departments and automatically updates as new users are added.
← Preventing firmware downgrade using efuse technology Unleash the power of unmanaged packages in salesforce →