Working with User Configuration on Exchange Server

Connect to an Exchange Server

Below is the code used to connect to Exchange Server 2010 in all the examples in this article.

Read User Configuration

To get the user configuration information of a specific folder from the Exchange Server:

  1. Connect to Exchange Server using the EWSClient class.
  2. Call the IEWSClient.getUserConfiguration() method to get the user configuration for a folder.
  3. Display the user configuration properties like ID, name and dictionary items as key-value pairs.  

Create User Configurations

To create the user configuration for a specific folder on an Exchange Server:

  1. Connect to the Exchange Server using the EWSClient class.
  2. Call the IEWSClient.createUserConfiguration() method to create the user configuration for a folder.  

Update User Configuration

To update the user configuration for a specific folder in the Exchange Server:

  1. Connect to the Exchange Server using the EWSClient class.
  2. Call the IEWSClient.updateUserConfiguration() method to update the user configuration for a folder.  

Delete User Configuration

To delete the user configuration for a specific folder in the Exchange Server:

  1. Connect to the Exchange Server using the EWSClient class.
  2. Call the IEWSClient.deleteUserConfiguration() method to delete the user configuration for a folder.