Exchange Mobility Provider::GetUsersPolicy

The GetUsersPolicy method retrieves a user's mobile device policy. If no policy is found, an exception is thrown.

Arguments

Input argument Required

<path>

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

<preferredDomainController>

The name of the preferred domain controller in the Service Provider domain.

Remarks

Rollback

For the GetUsersPolicy method, rollback is not implemented.

Sample Code

Example XML Request

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

<request> 
        <procedure> 
                <execute namespace="Exchange Mobility Provider" procedure="GetUsersPolicy" 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

The following is an example of an XML response for the GetUsersPolicy method of the Exchange Mobility Provider:

<response> 
  <procedure> 
    <data> 
      <preferredDomainController>ad01.fabrikam.com</preferredDomainController> 
      <path>LDAP://CN=user@alpineskihouse.com,OU=AlpineSkiHouse,OU=ConsolidatedMessengerOU=Hosting,DC=Fabrikam,DC=Com</path> 
      <properties> 
       <property name="AEFrequencyValue">2</property> 
       <property name="DeviceWipeThreshold">4</property> 
       <property name="CodeWordFrequency">2</property> 
       <property name="MinimumPasswordLength">6</property> 
       <property name="PasswordComplexity">0</property> 
       <property name="AEFrequencyType">1</property> 
       <property name="RefreshInterval">100</property> 
      </properties> 
    </data> 
</response> 

Applies To

Exchange Mobility Provider API for:

  • Hosted Messaging and Collaboration version 3.5

See also

Tasks

Exchange Mobility Provider::ClearUsersPolicy