Use this task to create or delete Roles and Organizational Units.
Example:
<fuego:directoryadmin importFile="/tmp/fdiexport.xml">
<deleteou name="ou1"/>
<deleteou name="ou2"/>
<createou name="ou3" description="ou1 description"/>
<createou name="ou4"/>
<deleterole name="role1"/>
<deleterole name="role2"/>
<deleterole name="roleParam1"/>
<createrole name="role3" description="role1 description"/>
<createrole name="role4" parametric="false"/>
<createrole name="roleParam2"
description="parametric role1 description"
parametric="true">
<param value="param1"/>
<param value="param2"/>
</createrole>
</fuego:directoryadmin>
<!-- Clean all the variables--> <fuego:directoryadmin action="clean-variables" />
| Attribute | Description | Type | Required? |
| importfile | File used to import the organization data. | File | Yes |
| action | Specify what action to perform. If not set, action is defined by nested elements. | String ["clean-variables"] | No |
| haltonerror | Stop the Ant build process if an error occurs. | boolean | No Defaults to true. |
| Attribute | Description | Type | Required |
| name | Name of the Organizational Role. | String | Yes |
| refid | Reference | ? | |
| parametric | Whether the role is parametric or not. | boolean | No Defaults to false. |
| Attribute | Description | Type | Required |
| refid | Reference | ? | |
| file | File | ? | |
| dir | File | ? | |
| defaultexcludes | boolean | ? | |
| followsymlinks | boolean | ? | |
| casesensitive | boolean | ? | |
| excludes | String | ? | |
| includesfile | File | ? | |
| excludesfile | File | ? | |
| includes | String | ? |
| Attribute | Description | Type | Required |
| name | Sets the name of the Organizational Unit. | String | Yes |
| refid | Reference | ? |
| Attribute | Description | Type | Required |
| name | Name of the Organizational Role. | String | Yes |
| refid | Reference | ? | |
| parametric | Whether the role is parametric or not. | boolean | No Defaults to false. |
| Attribute | Description | Type | Required |
| name | Sets the name of the Organizational Unit. | String | Yes |
| refid | Reference | ? |