Applying a template to an object during XML import
When importing, you can apply a Metrics Management template to objects that the XML import file creates. In the XML import file, you specify which Metrics Management object template to apply during import. To import successfully, the template must exist in Metrics Management and the import file must specify the Add action.
Object properties specified in the XML import file override properties defined in the Metrics Management template. For example, user privileges specified in the XML import file override user privileges defined in the Metrics Management user template.
How to create an object by XML import using a Metrics Management template
1 In the XML import file containing the objects to which you will apply the template, delete the object properties that the Metrics Management template specifies.
2 Add the following attribute to the import file:
useTemplate="Template Name"
where:
"Template Name"=The name of your template
*To apply the template to all objects in the file, add the useTemplate attribute to the XML header.
*To apply the template to specific objects in the XML import file, enter the useTemplate attribute for each individual object.
The following example shows using the View Only User template to create a new user named Project Mgr:
<Objects>
<User action="Add" name="Project Mgr" useTemplate="View Only User">
</Objects>
3 Import the XML file into Metrics Management.