Exchange Mobility Provider::ClearUsersPolicy

The ClearUsersPolicy method clears a user's mobile device policy. It removes the XML policy attribute and generates a new policy key.

Arguments

Input argument Required Description

<path>

Yes

The Lightweight directory access protocol (LDAP) path of the user. Type=string.

<preferredDomainController>

Yes

The name of the preferred domain controller in the Service Provider domain. Type=string.

Remarks

Rollback

For the ClearUsersPolicy method, the previously applied policy and policy key are restored upon rollback.

Sample Code

Example XML Request

The following is an example of an XML request for the ClearUsersPolicy method of the Exchange Mobility Provider:

<request> 
        <procedure> 
                <execute namespace="Exchange Mobility Provider" procedure="ClearUserPolicy" impersonate="1"> 
                        <executeData> 
<preferredDomainController>ad01.fabrikam.com</preferredDomainController> 
                                <path>LDAP://CN=user@alpineskihouse.com, OU=AlpineSkiHouse,OU=ConsolidatedMessengerOU=Hosting,DC=Fabrikam,DC=Com</path> 
                        </executeData> 
                        <after source="executeData" destination="data" mode="merge"/> 
                </execute> 
        </procedure> 
</request> 

Example XML Response

No example XML response.

Applies To

Exchange Mobility Provider API for:

  • Hosted Messaging and Collaboration version 3.5

See also

Tasks

Exchange Mobility Provider::SetUserPolicy