Skip to main content

Query Designer - Filter Criteria tab

Use this tab to add custom criteria to your query that do not fit any of the categories represented on other tabs of the Query Designer dialog box. For example, you can add criteria to retrieve all directory users who live in Houston and have a fax number. You can also apply logical operators (AND, OR) to your custom query to achieve the most accurate results.

If the administrator in your role's Query Designer policy has defined a default filter criteria, that filter criteria is displayed on this tab. You can view and copy the query using the View Query button. See the Specify a Default Filter Criteria section of the Query Designer Policy topic.

The default criteria is part of the policy; therefore, in Directory Manager portal it is visible to the role members only.

Let's say the administrator has defined the following default criteria in the policy:

department is exactly HR

You can add another row of filter criteria in the portal query designer window, if need be.

Select Attribute

By default, this is the only list displayed on the tab. It displays all or specific schema and Exchange attributes, depending on what the GroupID administrator has configured.

Select an attribute to be searched. For example, to search for users who live in the city of Houston, select the City attribute from this list.

Contains

From here, select the condition that identifies search results. The following table lists the available conditions:

NOTE: Depending on configurations made by the GroupID administrator for the portal, all of the following or specific conditions will be displayed in the list.

The condition list for query based searches may vary.

ConditionDescription
ContainsReturns everything that contains the value. NOTE: This is resource-intensive for the directory server.
Does Not End WithReturns everything that does not end with the value. NOTE: This is resource-intensive for the directory server.
Does Not Start WithReturns everything that does not start with the value.
Ends WithReturns everything that ends with the value. ( NOTE: This is resource-intensive for the directory server.
Greater Or EqualReturns everything with a value greater than or equal to the given value.
Is ExactlyReturns everything that matches the value.
Is NotReturns everything that does not match the value.
Less Or EqualReturns everything with a value less than or equal to the given value.
Not ContainReturns everything that does not contain the value. NOTE: This is resource-intensive for the directory server.
Not PresentReturns everything that does not have the specified value.
PresentReturns everything that has the value.
Starts WithReturns everything that starts with the value.
All Flags OnPerforms bit-wise comparison to find objects that have all the specific flags set for the attribute according to the given value. The value must be a decimal number; it cannot be a hexadecimal number or a constant name. For example, to search all users who do not need a password (decimal value of PASSWD_NOTREQD flag = 32) and whom passwords never expires (decimal value of DONT_EXPIRE_PASSWORD flag = 65536), set the value of UserAccessControl's attribute against this condition to 65568 (65536 + 32). See the Use the UserAccountControl flags to manipulate user account properties article for additional information.
All Flags OffPerforms bit-wise comparison to find objects that have all the specific flags not set for the attribute according to the given value. The value must be a decimal number; it cannot be a hexadecimal number or a constant name. For example, to search all users which are neither disabled (decimal value of ACCOUNTDISABLE flag =2) nor locked out (decimal value of LOCKOUT flag = 16), set the value of UserAccessControl's attribute against this condition to 18 (2 + 16). See the Use the UserAccountControl flags to manipulate user account properties article for additional information.
Any Flag OnPerforms bit-wise comparison to find objects that have any of the specific flag set for the attribute according to the given value. The value must be a decimal number; it cannot be a hexadecimal number or a constant name. For example, to search all users who do not need a password (decimal value of PASSWD_NOTREQD flag = 32) or whom passwords never expires (decimal value of DONT_EXPIRE_PASSWORD flag = 65536), set the value of UserAccessControl's attribute against this condition to 65568 (65536 + 32). See the Use the UserAccountControl flags to manipulate user account properties article for additional information.
Any Flag OffPerforms bit-wise comparison to find objects that have any of the specific flag not set for the attribute according to the given value. The value must be a decimal number; it cannot be a hexadecimal number or a constant name. For example, to search all users which are either disabled (decimal value of ACCOUNTDISABLE flag =2) or locked out (decimal value of LOCKOUT flag = 16), set the value of UserAccessControl's attribute against this condition to 18 (2 + 16). See the Use the UserAccountControl flags to manipulate user account properties article for additional information.
Chain MatchLimited to the attributes of DN (distinguished name) type only. This is a special extended filter that walks the chain of ancestry in objects all the way to the root until it finds a match. For example, you can use this filter with the ManagedBy attribute to find all the groups for which the selected user is a direct or indirect owner.

Value

Specify a value for the attribute. The query will return results considering the specified criteria (attribute, condition, value).

For some operators, the Value box is not available, as in the case of Present or Not Present. This happens when the operators are not comparison operators. They only check whether the value for the selected field exists and return either TRUE or FALSE.

AND

Click this button after selecting two or more records to insert a logical AND to the selected criteria.

To select a record, click the arrow icon next to it and click Select Row.

OR

Click this button after selecting two or more records to insert a logical OR to the selected criteria.

To select a record, click the arrow icon next to it and click Select Row.

Clear

Use this button to clear the given criteria.

Preview

Enables you to preview the results returned with the criteria specified on all tabs of the Query Designer dialog box. This is a check to ensure the accuracy of data before changes are committed to the directory.

OK

Saves settings and closes the dialog box.

Cancel

Discards settings and closes the dialog box.

LDAP Query

View the provider query in the LDAP Query box.