Level 1
0 / 100 XP

Query Based User Collections Example #2

In this lecture, we will create a Query Rule that pulls users from AD, based upon that users AD account Properties.

I will show you how to configure the user account properties. Then you will create the collection and the query rule.

Typical Use:

You could deploy applications directly to a collection based upon a person’s job title, or department. In this case the Department will be Engineering.

  • From your Domain Controller, open Server Manager. Then Click Tools then Click Active Directory Users and Computers.

  • Double click the Server Academy OU. Right click on the Users OU, then click new, then click user.

  • Go ahead and create a user. Stop the video while you do this.

  • Double click the Users OU. Right click on the new user, then click properties, click organization, fill out the form adding job title (Job title - Engineer, Department - Engineering, Company - Server Academy.

Adding attributes to AD User Discovery Properties

For this example, lets add some attributes for User discovery: Discovery methods add quite a bit of information to the SCCM data base. Now we will add some additional information.

From the SCCM console from the Workspace, click Administration , and then from the Navigation Pane, expand Hierarchy Configuration , then click Discovery Methods.

  1. Right click “Active Directory User Discovery ”, then click Properties
  2. Select the “Active Directory Attributes ” tab
  3. Scroll down and in this example we will select “department “, click **Add **to move Department into the Selected Attributes list.
  4. Then click OK

Now we will Create a User Collection and a Query Rule

Follow the guide that came with this lecture. If you need help refer back to example 1 in the previous lecture to create your user collection and configure your Query Rule

![A picture containing electronics, device Description automatically generated](https://zr…