I was on here to try to find how to turn this into a server method, but here is how to add an existing identity as member to an identity. Just a different snippet that works for me. It does: Edit Identity / Add Member / Get Identity to add as member.
<AML>
<Item type="Identity" action="edit" where="[identity].name='All Employees'">
<Relationships>
<Item type="Member" action="add">
<related_id>
<Item type="Identity" action="get">
<name>test user</name>
</Item>
</related_id>
</Item>
</Relationships>
</Item>
</AML>
I was on here to try to find how to turn this into a server method, but here is how to add an existing identity as member to an identity. Just a different snippet that works for me. It does: Edit Identity / Add Member / Get Identity to add as member.
<AML>
<Item type="Identity" action="edit" where="[identity].name='All Employees'">
<Relationships>
<Item type="Member" action="add">
<related_id>
<Item type="Identity" action="get">
<name>test user</name>
</Item>
</related_id>
</Item>
</Relationships>
</Item>
</AML>