Creating a group by using XML

Use the CreateGroup procedure of the Managed Active Directory namespace to create a group in Active Directory. The CreateGroup procedure creates a new group within a specified organization according to the policy name you supply in the <policyName> element.

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

Example of a request that calls the CreateGroup procedure

	<execute namespace="Managed Active Directory" procedure="CreateGroup">
		<groupType>UNIVERSAL SECURITY</groupType>
		<description>Describes the new group</description>
	<after source="executeData" destination="data" sourcePath="group" />

Input for CreateGroup

The following input is valid for this request:

Typical response for CreateGroup

	<group path="LDAP://cn=myGroup1,ou=Hosting,DC=contoso,DC=com" name="myGroup1"