Skip to main content

NIM

Step 10: Add a mapping to update AD accounts (tutorial)

As the last step in the basic tutorial, we'll configure an AD user update mapping.

Modify the source data
  1. Outside of NIM, we'll copy the employees.txt file from our HR500 system, and open it in a text editor.

  2. We'll modify a few names and save the file.

    2023-07-12_15-00-10.jpg

    Row #

    Old First Name

    New First Name

    2

    Eleanor

    Ellie

    4

    Patrick

    Pat

    5

    Bobby

    Bob

    6

    Marlene

    Marly

    8

    Anna

    Ann

  3. We'll copy and paste the updated file over the old one, in the Path that our HR500 system files are located in (configured in Step 1).

    2023-07-12_15-10-12.jpg
Copy our previous filter
  1. Go to Processing > Filters.

  2. For the HR500_AD_User_Create filter we created previously, click Copy Filter.

    2023-07-12_14-26-49.jpg

    A copy is created, named HR500_AD_User_Create_01:

    2023-07-12_14-28-02.jpg
  3. For the filter copy, click Rename Filter. Name it HR500_AD_User_Update.

    2023-07-12_14-30-36.jpg
  4. Click Change.

    2023-07-12_14-31-07.jpg
Configure the filter's logic
  1. For the now-renamed HR500_AD_User_Update filter, click Edit Filter.

  2. We'll change the no logical operator to any. This is because we're now looking for employees that do have AD accounts.

    2023-07-12_14-18-15.jpg
  3. When we click Filter, this is confirmed: all 585 employees are returned.

    2023-07-12_14-23-01.jpg
  4. 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.

    2023-07-12_14-35-51.jpg
  5. Click Save.

    Tip

    For an update mapping, we don't need to do any of the logic checks in the filter. The update mapping itself will handle this.

Add the user update mapping
  1. Go to Output > Mappings.

  2. Click Add.

  3. Enter the following values:

    • System: AD

    • Target: Users

    • Function: UserUpdate

    • Name: HR500_AD_UserUpdate

    2023-07-12_14-11-25.jpg
  4. Click Save.

    2023-07-12_14-12-16.jpg
Configure the mapping
  1. For the mapping's Filter, select HR500_AD_User_Update. Its columns are populated into the Items pane.

    2023-07-12_14-48-30.jpg
  2. In the Items pane, click the > button to preview the first record.

    2023-07-12_14-49-32.jpg
  3. For this example, we'll only map the following attributes:

    2023-07-12_14-56-37.jpg

    Attribute

    Item

    Note

    givenName

    first_name

    objectGUID

    objectGUID

    Required.

  4. Click Save.

Collect data
  • We'll go back to Systems > Overview and click Collect for both our systems.

    2023-07-12_15-12-17.jpg
Preview the mapping
  1. 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.

    2023-07-12_15-14-34.jpg
  2. We'll select one of the rows in the Operation pane and click Run Selected Item.

    2023-07-12_15-17-58.jpg

    Tip

    Double-click a bolded cell to see more details about it.

    2023-07-12_15-22-58.jpg
  3. This user's first name has been updated in AD.

    2023-07-12_15-18-52.jpg
Update the HR500_AD job
  1. Go to Output > Jobs.

  2. For the HR500_AD job, click Edit Job.

  3. Go to the Configuration tab.

    2023-07-12_15-25-44.jpg
  4. Click Add.

  5. For this job item, we'll select a type of crud, and for the Name, we'll select the HR500_AD_UserUpdate mapping. We'll set the Threshold to 1000.

    2023-07-12_15-26-31.jpg
  6. Click Save.

Run the job from the schedule
  1. As a final step, we'll go back to Scheduler > Overview and click Manual Run for the HR500 schedule.

  2. Four updates are found and written into AD (the five changes we made, minus the one that we already test ran).

    2023-07-12_15-34-12.jpg