Use the MailDisableGroup procedure of the Managed Exchange namespace to disable an Active Directory group from receiving mail. This means that the group will no longer function as a distribution list.
This procedure performs explicit internal permissions testing. Only members of admins@organization and domain administrators can call this procedure.
<request>
<procedure>
<execute namespace="Managed Exchange" procedure="MailDisableGroup">
<executeData>
<path>LDAP://ou=my-contosoOrg,cn=Hosting,dn=contoso,dn=com</path>
<cn>myDistributionList</cn>
</executeData>
</execute>
</procedure>
</request>
The following input is valid for this request:
In the <path> element, specify the Lightweight Directory Access Protocol (LDAP) path of the container organization in which the group resides.
<path>LDAP://LDAP path of the container</path>
In the <cn> element, specify the name of the Active Directory group that you want to disable. This value corresponds to the name of the distribution list.
<cn>name of distribution list</cn>
The response to this procedure does not contain significant data.
Important