Update existing Active Directory accounts
Provisioning tutorial · Step 10 of 10
Keep existing Active Directory accounts aligned with HR500 data.
Finish the workflow by creating an update mapping that synchronizes changes from HR500 to existing AD accounts.
Modify the source data
-
Outside NIM, open a copy of the HR500
employees.txtfile in a text editor. -
Update and save a few first names.
Row Original Updated 2 Eleanor Ellie 4 Patrick Pat 5 Bobby Bob 6 Marlene Marly 8 Anna Ann -
Replace the original file in the HR500 path configured in step 1.
Copy our previous filter
- Go to Processing > Filters.
- For the HR500_AD_User_Create filter we created previously, click Copy Filter. A copy is created, named HR500_AD_User_Create_01 :
- For the filter copy, click Rename Filter. Name it HR500_AD_User_Update .
- Click Change.
Configure the filter's logic
- For the now-renamed HR500_AD_User_Update filter, click Edit Filter.
- We'll change the no logical operator to any. This is because we're now looking for employees that do have AD accounts.
- When we click Filter, this is confirmed: all 585 employees are returned.
- We'll also go to the Columns Selection tab and enable all columns under the Users alias. Whereas these columns were always blank and therefore irrelevant in the HR500_AD_User_Create filter, they will be non-empty in this filter.
- Click Save.
An update mapping handles whether a value changed, so this filter does not need the extra logic checks used by the create mapping.
Add the user update mapping
- Go to Output > Mappings.
- Click Add.
- Enter the following values: - System: AD - Target: Users - Function: UserUpdate - Name: HR500_AD_UserUpdate
- Click Save.
Configure the mapping
-
For the mapping's Filter, select HR500_AD_User_Update . Its columns are populated into the Items pane.
-
In the Items pane, click the > button to preview the first record.
-
Map only the values needed for this update:
Attribute Item Note givenName first_nameobjectGUID objectGUIDRequired -
Click Save.
Collect data
- We'll go back to Systems > Overview and click Collect for both our systems.
Preview the mapping
-
If we edit our HR500_AD_UserUpdate mapping and go to its Run tab, the five names we changed in the CSV source data are now queued.
-
Select one operation and click Run Selected Item.
tipDouble-click a bold cell to see its details.
-
This user's first name has been updated in AD.
Update the HR500_AD job
- Go to Output > Jobs.
- For the HR500_AD job, click Edit Job.
- Go to the Configuration tab.
- Click Add.
- For this job item, select
crudfor Type, then select the HR500_AD_UserUpdate mapping for Name. Set the Threshold to1000. This threshold counts pending account-update mapping operations. It does not use the individual membership-change count applied togroupmembershipitems. - Click Save.
Run the job from the schedule
- As a final step, we'll go back to Scheduler > Overview and click Manual Run for the HR500 schedule.
- Four updates are found and written into AD (the five changes we made, minus the one that we already test ran).