Hi Nathan
Using below AML query you can connect User and Identity
<AML>
<Item type="User" id="" action="add" doGetItem="0"> // Random GUID
<login_name></login_name> // User Login Name
<first_name></first_name>
<last_name></last_name>
<logon_enabled></logon_enabled> // Default 1
<owned_by_id></owned_by_id> // Existing Identity GUID
<email></email>
<Relationships>
<Item type="Alias" id="" action="add"> // Random GUID
<related_id></related_id> // Existing Identity GUID
<source_id></source_id> // Above User Random GUID
</Item>
</Relationships>
</Item>
</AML>
Example Query
<AML>
<Item type="User" id="21928F9AC5DB44A4BB8A9FC3273FA85F" action="add" doGetItem="0">
<login_name>existinguser</login_name>
<first_name>Existing</first_name>
<last_name>User</last_name>
<logon_enabled>1</logon_enabled>
<owned_by_id> F2C3755755C44EB6B81AFEEF1C49473E</owned_by_id>
<email>existinguser@gmail.com</email>
<Relationships>
<Item type="Alias" id="7766F3F302644E128C60A88F7DC9863E" action="add">
<related_id>F2C3755755C44EB6B81AFEEF1C49473E</related_id>
<source_id>21928F9AC5DB44A4BB8A9FC3273FA85F</source_id>
</Item>
</Relationships>
</Item>
</AML>
Thank You
Gopikrishnan R