Exchange 2007 Provider::MailDisableGroup
This method Mail-disables an existing group by removing the Exchange attributes of the contact.
Arguments
Input Arguments | Required | Description |
---|---|---|
<preferredDomainController> |
Yes |
The domain controller to use for Active Directory actions. |
<path> |
Yes |
The Lightweight directory access protocol (LDAP) path of an existing universal group. |
Remarks
The owning organization dn is retrieved from the group's otherWellKnowObjects attribute.
The dn of the organization's global address list (GAL) is retrieved from otherWellKnownObjects on the organization object and the entry matching that GAL is removed from the showInAddressBook property of the contact. This process is repeated for the organization's address list (AL).
This method removes the organization from the otherWellKnownObjects of the group.
Security
The caller must be at least a member of role: UserCreators.
Sample Code
Example XML Request
<request>
<data>
<!--The domain controller to use for Active Directory actions.-->
<preferredDomainController>AD01.Fabrikam.Com</preferredDomainController>
<!--The LDAP path of an existing universal group.-->
<path>LDAP://CN=Sales@AlpineSkiHouse,OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=Fabrikam,DC=Com</path>
</data>
<procedure>
<execute namespace="Exchange 2007 Provider" procedure="MailDisableGroup" impersonate="1">
<before source="data" sourcePath="preferredDomainController" destination="executeData" mode="move" />
<before source="data" sourcePath="path" destination="executeData" mode="move" />
<after source="executeData" destination="data" mode="merge" />
</execute>
</procedure>
</request>
Applies To
Exchange 2007 Provider Namespace for:
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0
See also
Tasks
Hosted Email 2007::MailEnableGroup
Hosted Email 2007::ModifyDistributionList
Hosted Email 2007::CreateDistributionList
Hosted Email 2007::DeleteDistributionList