Table of Contents

Automatic roles on tree nodes - import data from CSV

This tool is a part of the Extras module.

The LRT ImportAutomaticRoleForTreeNodeFromCSVExecutor allows you to import automatic roles which will use tree nodes in their rules. All you need is to have some tree nodes and roles in your environment.

Let's prepare a sample CSV file:

nodename;nodeid;rolecode;recursion
one;;role2;UP
two;;role2;UP

Before you start, create two sample organization units (tree nodes):

  1. Name: Organization One, code: one
  2. Name: Organization Two, code: two

Then create one role with the code "role2" and name "role2".

Configure the LRT

Go to Settings>Task scheduler>Scheduled task and click the green button Add. Select ImportAutomaticRoleForTreeNodeFromCSVExecutor. Configure the Task parameters.

Finally, click Save and run the task using the green arrow.

Check result

Now, you should see that two automatic roles were created:

Good to know