Adding a member to a group by using XML

Use the GroupAdd procedure of the Managed Active Directory namespace to add a member to a group in Active Directory.

This procedure expects to be called with impersonate="1". The procedure impersonates the caller.

Example of a request that calls the GroupAdd procedure

<request>
  <procedure>
	<execute namespace="Managed Active Directory" procedure="GroupAdd">
	<executeData>
		<group>LDAP://CN=Administrators,CN=Users,DC=contoso,DC=com</group>
		<newMember>LDAP://CN=myUser1,CN=Users,DC=contoso,DC=com</newMember>
		<preferredDomainController>myPrimaryDC.contoso.com</preferredDomainController>
	</executeData>
	</execute>
  </procedure>
</request>

Input for GroupAdd

The following input is valid for this request:

Typical response for GroupAdd

The response to this procedure does not contain significant data.

Important