To add a membership rule to a dynamic group, right-click the dynamic group, and then click Add Membership Rule. This starts the New Membership Rule Wizard. Complete the wizard as described in Converting a basic group to a dynamic group. To add a membership rule to a dynamic group, you can also use the Membership Rules tab in the Properties dialog.
To add a membership rule to a group
-
In the Console tree, select the folder that contains the group to which you want to add a membership rule.
-
In the details pane, right-click the group, and do one of the following to start the New Membership Rule Wizard:
-
If the group is a basic group, click Convert to Dynamic Group, then click Yes.
-
If the group is a dynamic group, click Add Membership Rule.
-
-
On the first page of the wizard, select the type of the membership rule you want to create. Do one of the following, then click Next:
-
To create a rule that statically adds members to the group, click Include Explicitly.
-
To create a rule that statically excludes members from the group, click Exclude Explicitly.
-
To create a rule that adds all members of a certain group to the selected group, click Include Group Members.
-
To create a rule that excludes all members of a certain group from the selected group, click Exclude Group Members.
-
To create a rule that populates the group with the objects that match certain search criteria, click Include by Query.
-
To create a rule that prevents the group from including the objects that match certain search criteria, click Exclude by Query.
-
-
On the next page of the wizard, click Add.
If you selected the Include by Query rule type or the Exclude by Query rule type in Step 3, the Create Membership Rule dialog appears. Otherwise, the Select Objects dialog appears.
-
Complete the Create Membership Rule or Select Objects dialog using the procedures outlined below in this section.
-
Click Finish to close the wizard.
To complete the Create Membership Rule dialog
-
From the Find list, select the class of objects you want the membership rule to include or exclude from the group. For example, when you select Users, the membership rule includes or excludes the users that match the conditions you specify.
-
From the In list, select the domain or folder that holds the objects you want the membership rule to include or exclude from the group. For example, when you select an Organizational Unit, the membership rule includes or excludes only the objects that reside in that Organizational Unit.
To add folders to the In list, click Browse and select folders in the Browse for Container dialog.
-
Define the criteria of the membership rule. For example, to include or exclude the objects that have the letter T at the beginning of the name, type T in Name. You can use an asterisk (*) to represent any string of characters.
-
Optionally, click Preview Rule to view a list of objects that match the criteria you have defined.
-
Click Add Rule.
To complete the Select Objects dialog
-
In the Look in list, click the domain or folder that holds the objects you want to select. To add a folder to the list, click Browse.
-
Do one of the following, and then click OK.
-
In the list of objects, double-click the object you want to add.
-
In the lower box, type the entire name (or a part of the name) of the object you want to add. Then, click Check Names.
-
NOTE: Consider the following when adding a membership rule to a dynamic group:
-
The only way to populate dynamic groups is by adding membership rules. The members of a dynamic group are the objects that match the criteria defined by the membership rules.
-
To convert a dynamic group back to a basic group, right-click the group, and click Convert to Basic Group. When converting a dynamic group to a basic group, Active Roles removes all membership rules from the group. No changes are made to the list of the current members for that group.
-
The Create Membership Rule dialog is similar to the Find dialog you use to search for objects in the directory. Once you have specified your search criteria, the Add Rule function saves them as a membership rule. For more information on how to specify search criteria, see Finding objects.
-
The Find list includes the Custom Search entry. Selecting that entry displays the Custom Search tab, enabling you to build custom membership rules using advanced options, as well as to build advanced membership rules using the Lightweight Directory Access Protocol (LDAP), which is the primary access protocol for Active Directory. For more information about using advanced search options, see Steps for using advanced search options and Steps for building a custom search.