Scenario: Automatically moving users between groups
This scenario removes a user from the Seattle group and adds the user to the Atlanta group when the user relocates to Atlanta from Seattle.
Suppose user accounts of employees working in Seattle belong to the Seattle group, and user accounts of those working in Atlanta belong to the Atlanta group. The group to which the user belongs is defined by the city attribute: employees working in Seattle have user accounts with the value Seattle for the City attribute. For those working in Atlanta, the value is Atlanta.
To implement this scenario, you must perform the following actions:
- Create the Seattle and Atlanta groups.
- Configure membership rules to add users with a city value of Seattle to the Seattle group, and those with Atlanta to the Atlanta group.
As a result, only user accounts that currently have a city value of Seattle belong to the Seattle group. Thus, when an employee leaves Seattle for Atlanta, an administrator changes the City attribute from Seattle to Atlanta, and the user automatically moves to the Atlanta group because of the membership rule. Conversely, when an employee leaves Atlanta for Seattle, the administrator changes the city attribute from Atlanta to Seattle, and the user automatically transfers to the Seattle group.
The following sections elaborate on the steps to implement this scenario.
Step 1: Creating the groups
To create the Seattle group, in the console tree, right-click the container where you want to add the group, and select New | Group. Follow the instructions in the New Object – Group wizard. In the Group name box, type Seattle.
To create the Atlanta group, in the console tree, right-click the container where you want to add the group, and select New | Group. Follow the instructions in the New Object – Group wizard. In the Group name box, type Atlanta.
Step 2: Configuring the membership rules
In this scenario, employees working in Seattle have user accounts with a value of Seattle for the City attribute. Those working in Atlanta have a value of Atlanta.
First, configure the membership rule for the Seattle group. Right-click the group and click Convert to Dynamic Group. In the confirmation message box, click Yes.
On the first page of the New Membership Rule wizard, click Include by Query, and then click Next.
On the second page, click Add to display the Create Membership Rules dialog box. Then, follow these steps to configure the membership rule:
- In the Find list, click Users.
- Click Browse and select the domain, OU, or Managed Unit that holds user accounts of the employees.
- Click the Advanced tab.
- Click Field, click City, and then click OK in the Select Object Property dialog box.
- In the Condition list, click Is (exactly).
- In the Value box, type Seattle.
- Click Add, and then click the Add Rule button.
When you are done, click Finish in the New Membership Rule wizard.
Repeat the same procedure for the Atlanta group, but type Atlanta in the Value box when configuring the membership rule.
Active Roles Reporting