-
In the Console, open the Sync Workflows tab, and then click the sync workflow you created in the Creating a sync workflow step.
- Click Add synchronization step.
- On the Select an action page, select Creation, and then click Next.
-
On the Specify source and criteria page, click Specify, click Add new connected system, and then step through the wizard to add the sample Comma Separated Values (.csv) file as a connected system:
-
Use the Connection name box to type a descriptive name for the connection being created.
-
In the Use the specified connector list, select Delimited Text File Connector. Click Next.
-
Click Browse to locate and select the sample Comma Separated Values (.csv) file supplied with . This file is located in the < installation folder>\Samples folder.
-
Step through the wizard until you are on the Specify attributes to identify objects page.
-
In the Available attributes list, select Employee ID, click Add, and then click Finish.
-
Click Next.
-
On the Specify target page, click Specify, and then step through the wizard to add the target Active Directory domain as a connected system:
-
Use the Connection name box to type a descriptive name for the connection being created.
-
In the Use the specified connector list, select Active Directory Connector. Click Next.
-
Use the Domain name field to type the FQDN name of the target Active Directory domain. If necessary, adjust other connection settings on this page as appropriate. Click Finish.
-
Click the down arrow on the button provided next to the Target container option.
-
In the provided list, click PowerShell Script.
-
Insert the following script sample into the dialog, and then click OK:
$userCity = $srcObj["City"]
switch ($userCity)
{
"New York" {$container = "OU=New York,OU=Employees,DC=mycompany,DC=com"; break}
"Amsterdam" {$container = "OU=Amsterdam,OU=Employees,DC=mycompany,DC=com"; break}
"Tokyo" {$container = "OU=Tokyo,OU=Employees,DC=mycompany,DC=com"; break}
default {$container = "OU=OtherCities,OU=Employees,DC=mycompany,DC=com"; break}
}
$container
NOTE: Before using the script, change the DC=mycompany",DC=com string as appropriate to reflect your environment. For example, if you have created the Employees OU in the testlab.ttt domain, use the following string: DC=testlab,DC=ttt.
-
Click the down arrow on the leftmost button provided below the Rules to generate unique object name list.
-
In the provided list, click Attribute.
-
Select Logon Name, and then click OK. Click Next.
-
Expand Initial Attribute Population Rules, and then create forward sync rules to synchronize the following pairs of attributes:
Table 115: Initial attribute population rules
Logon Name |
=> |
Logon Name (Pre-Windows 2000) |
First Name |
=> |
First Name |
Last Name |
=> |
Last Name |
City |
=> |
City |
For more information on how to create rules, see Modifying attribute values by using rules.
-
Expand Initial Password, click Text, and type a password in the Set Password dialog. Click OK.
-
(Optional) To modify the default options to create new user accounts, expand User Account Options.
-
Click Finish to close the wizard.