Project: PhoneBook_ADsync_UpdateUser
The project updates the phone number obtained from the phonebook application for the user account in Active Directory. The project is executed only if the phone numbers are found to be different.

Figure 23: Script PhoneBook_ADsync_UpdateUser
The project first accesses the user object with the Get user (AD) action. The action uses the variable %distinguishedName% to bind to the account. This variable is a result from the LDAP search in Active Directory of the main project. The variable is now used to find the account in Active Directory in order to update the telephoneNumber attribute. With the script action Set attribute (AD), the Active Directory attribute is updated. The new value is set to %PhoneNumber%; this is the telephone number of the employee as obtained from the leading phonebook application.
|