Previous Topic: About Account Import XML SchemaNext Topic: Schema Notes


Example XML Data File

This section shows an example XML file used in an Account Import operation.

Note: See the Schema Notes for details about the <root>, <hierarchy> and <users> sections.

<?xml version='1.0' encoding='UTF-8'?>
<accountimport version='4.7' format='hierarchical' preserveuniquegroups='True' add_db='true' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  <root>
    <group name='Unipraxis'>
      <group name='Directors' />
      <group name='Development'>
        <group name='Senior Software Engineers' />
        <group name='Quality Assurance' />
        <group name='Software Engineers'>
          <user policyexempt='true'>
            <name>UNIPRAXIS\srimmel</name>
            <fullname>Spencer Rimmel</fullname>
            <role>Manager</role>
            <reportname>srimmel</reportname>
            <securitymodel description='Policy (All Events, Restricted Triggers) and Management Group  (Standard, Self-Exclude)'>PA,MDX</securitymodel>
            <policyroles>
              <policyrole>PCI Compliance Policies</policyrole>
            </policyroles>
            <mgmtgroups>
              <group>
                <element>Unipraxis</element>
                <element>Development</element>
                <element>Software Engineers</element>
              </group>
              <group>
                <element>Unipraxis</element>
                <element>Development</element>
                <element>Senior Software Engineers</element>
              </group>
            </mgmtgroups>


            <attributes>
              <attr index='1' xsi:type='IndexedAttribute'>
                <value>Development</value>
              </attr>
              <attr index='4' xsi:type='IndexedAttribute'>
                <value>Taunton</value>
              </attr>
              <attr index='7' xsi:type='IndexedAttribute'>
                <value></value>
              </attr>
              <attr xsi:type='EmailAttribute'>
                <value>software.developer@unipraxis.com</value>
              </attr>
            </attributes>
          </user>
        </group>
      </group>
    </group>

    <hierarchy relativeTo='Development'>
      <group name='Quality Assurance'>
        <user policyexempt='false'>
          <name>UNIPRAXIS\fschaeffer</name>
          <fullname>Frank Schaeffer</fullname>
          <role>User</role>
          <attributes>
            <attr index='1' xsi:type='IndexedAttribute'>
              <value>Development</value>
            </attr>
            <attr index='4' xsi:type='IndexedAttribute'>
              <value>Taunton</value>
            </attr>
            <attr xsi:type='EmailAttribute'>
              <value>qa.engineer@unipraxis.com</value>
            </attr>
          </attributes>
        </user>
      </group>
    </hierarchy>


    <users>
      <user>
        <name>UNIPRAXIS\lsteel</name>
        <fullname>Lynda Steel</fullname>
        <role>User</role>
        <group isRelative='true'>
          <element>directors</element>
        </group>
      </user>
    </users>
  </root>
</accountimport>

More information:

Schema Notes