Distributing group memberships by using XML

Use the DistributeGroupMemberships procedure of the Managed Active Directory namespace to redistribute the group membership for the next group pending. This procedure must be called once for each group that is pending. Use the GetWin2KCapacityPending procedure to return the groups whose membership needs to be redistributed after a call to ExpandWin2KCapacity.

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

Example of a request that calls the DistributeGroupMemberships procedure

<request>
  <procedure>
	<execute namespace="Managed Active Directory" 
		procedure="DistributeGroupMemberships" impersonate="1">
	<executeData>
		<organization>LDAP://ou=Hosting,dc=contoso01,dc=com</organization>
		<capacityType>UserN</capacityType>
	</executeData>
	<after source="executeData" destination="data"  />
	</execute> 
  </procedure>
</request>

Input for DistributeGroupMemberships

The following input is valid for this request:

Typical response for DistributeGroupMemberships

This procedure returns a <pending> tag containing the pending groups, if any groups are pending. This procedure also returns the group whose membership was redistributed during this call.

<response>
  <data>
	<executeData>
	<organization>LDAP://ou=Hosting,dc=contoso01,dc=com</organization>
	<capacityType>UserN</capacityType>
	<processed>LDAP://CN=AllUsers@Hosting,CN=_Private,OU=Hosting,DC=contoso01,DC=com</processed>
	</executeData>
  </data>
</response>

Important