The following scenario demonstrates how to create user accounts from a Human Resources (HR) database to an Active Directory domain. The HR database is represented by a sample Comma Separated Values (.csv) file. Depending on the user city, accounts will be created in one of the following OUs:
This scenario includes the following steps:
To create a new sync workflow
This section provides instructions on how to:
To add a creating step
$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" |
CSV file attribute |
Synchronization direction |
Active Directory attribute |
Logon Name |
=> |
Logon Name (Pre-Windows 2000) |
First Name |
=> |
First Name |
Last Name |
=> |
Last Name |
City |
=> |
City |
For information on how to create rules, see Modifying attribute values by using rules.
To run the creating step
After the synchronization step run completes, the Synchronization Service Administration Console displays a report that provides information about the objects that participated in the creating step. At this stage, the application does not commit changes to the target Active Directory domain.
|
TIP: To view a list of user accounts to be created in the Employees OU, click the number next to Objects to be created. |
© 2021 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy