Exchange Connector (.NET)

Last modified 27 Oct 2021 10:53 +02:00

Legacy connector for Microsoft Exchange servers based on .NET framework.

Development statusabandoned (no longer developed or maintained, legacy code)
Support statusunsupported
Support provided by
Target systemsMicrosoft Exchange servers
ProtocolPowerShell + ADSI
Source code

Connector usable for connecting to Active Directory and Microsoft Exchange. This is quite heavyweight connector and it works only in .NET connector server.

Exchange connector provides a superset of functionality of the Active Directory connector.


This connector is based on the .NET code developed by Sun Microsystems in 2000s. It is in fact just a special case of (now deprecated) .NET-based Active Directory Connector. This connector is OBSOLETE. It is likely that it will still work, but it is no longer developed, it is not maintained and it is not supported.

Please use dedicated SSH or Poweshell connectors instead.

Capabilities and Features

Provisioning YES

Live Synchronization






Script execution



This is mostly the original Sun ICF AD connector. Some extensions and fixes were done by ForgeRock and Evolveum.

Version Origin Binary Sources Build Date Description

Version built by Evolveum


github (Evolveum/openicf, branch master)

Oct 22nd, 2014

Experimental. Support for paged searches (VLV) for AD-fetched objects (users, orgs, groups).

Version built by Evolveum



Sep 9th, 2014

A lot of new functionality (many object classes, flexible scripting and schema processing). Seems to be quite stable. Recommended.

Version built by Evolveum



May 31st, 2014

Use this one in case of problems with

Version built and partially tested by Evolveum


Mar 2014

OBSOLETE. Use only with pre-3.0 versions of midPoint.



Exchange connector is able to provision Active Directory users, optionally with some Exchange-related artefacts. Specifically, currently supported kinds of users (recipient types in Microsoft terms) are shown in the following table. The first column contains Microsoft name for the recipient type, while the second one contains the respective value that should be put into RecipientType attribute (see below) to create specified kind of user.

Recipient type RecipientType attribute value Meaning

User mailbox


Active Directory user with a mailbox in local Exchange organization.

Mail user


Active Directory user that has a mailbox outside the Exchange organization. Each mail user has an external email address. Messages sent to this user are forwarded to the external email address.



Ordinary Active Directory user without any Exchange-related information.

Support for provisioning other types of recipients (e.g. distribution groups) is planned for the future.


To successfully manage accounts with Exchange access, the administrative user should be put into the "Organizational Management" group (located in "OU=Microsoft Exchange Security Groups, …​").

Also it seems that at least for Microsoft Exchange 2013 the Connector Server should be running as the same administrative user, not LOCAL_SYSTEM.

Comparison with Active Directory connector

Exchange connector is a superset of Active Directory connector. It is able to provision "pure" Active Directory users. However, there are two differences:

  1. Exchange connector requires Exchange installation to work, even if you do not plan to deal with any Exchange-specific objects.

  2. Exchange connector does not support UpdateAttributeValuesOp API interface, so adding and deleting attribute values (for both general AD attributes as well as Exchange-specific ones) is a bit less efficient in comparison with Active Directory connector, because these operations have to be emulated by Connector Server via GET-UPDATE operations pair. Direct replacing attribute values (UpdateOp API interface) is supported by both connectors.

Therefore, if you plan to use AD objects only, use AD connector. If you plan to use Exchange objects as well, use Exchange connector.

Aspect Active Directory connector Exchange connector

Required software

Windows Server

Windows Server with Exchange server (TODO: specify exactly which components of Exchange are needed)

Works with AD-only objects and attributes



Works with Exchange-specific objects and attributes



Supports efficient "attribute add/delete value" operation




Production quality

Near-production quality (still in development)

Please note that the distribution ZIP file for Exchange connector contains both connectors (two DLL’s with supporting files), so when installing into Connector Server directory, it is sufficient to install this one file. On connector discovery, midPoint will show two connectors: Active Directory and Exchange. It is up to you whether you use AD or Exchange connector for working with any given resource.

Supported attributes

The connector supports all attributes supported by AD connector, along with the following Exchange ones. Descriptions are taken from Microsoft’s site.

Attribute Description AD counterpart Notes


Specifies the kind of user (see table above).

msExchRecipientDisplayType, msExchRecipientTypeDetails

Beware that when changing the value from UserMailbox to any other one, the user’s mailbox is deleted. Also when changing any value to User, all Exchange-related information from Active Directory user object are removed. When fetching data from the resource, two AD attributes are used to determine RecipientType: msExchRecipientDisplayType and msExchRecipientTypeDetails (see here). It is possible that in some cases, the mapping will be inaccurate. Please contact Evolveum support in such situations. For diagnostic purposes, values of these two attributes are provided (as read-only items) among account attributes fetched from the resource.


External email address to which all messages for a MailUser should be forwarded.


This parameter is obligatory when creating a MailUser.These addresses are used without "smtp:" prefix - pure "user@domain" form is needed.

EmailAddresses (multivalued)

All addresses under which this user is known.


In contrary to other email addresses used by this connector, this parameter uses SMTP:/smtp: prefixes for individual address. "SMTP:" prefix is used for specifying primary SMTP address, "smtp:" for non-primary ones. Only one address can be designated as primary.It is not allowed to specify this attribute along with PrimarySmtpAddress attribute.Usually, these addresses are computed by default, unless EmailAddressPolicyEnabled is set to false.


Are EmailAddresses updated automatically based on e-mail address policy?



Primary SMTP address.


Do not set/modify along with EmailAddresses.


The part of address before "@" sign.


The alias can be a combination of characters separated by a period with no intervening spaces. Don’t use special characters in the alias.


Specifies whether this mailbox is hidden from other address lists.



Specifies the database that contains the mailbox object. You can use either GUID or database name.


If not specified, default database is used. This attribute is not updatable. Any attempt to update it will fail. Mailboxes have to be moved explicitly using Exchange tools or dedicated PowerShell commands.


Specifies a SMTP address where mail should be forwarded.


For detailed explanation, see e.g. this document.


If set to TRUE, messages are delivered to the mailbox and to the forwarding address. If set to FALSE, messages are delivered only to the forwarding address.



Used to store any custom (additional) information.


Connector configuration

Connector configuration is the same as for Active Directory connector, with one attribute added: ExchangeUri. It shoud contain a URI pointing to place where to execute PowerShell commands used to manage Exchange accounts. An example: As the host name, DO NOT use "localhost", because in that case the Kerberos authentication to that host will fail.

A sample configuration:

      <icfc:resultsHandlerConfiguration xmlns:icfc="">
      <icfc:configurationProperties xmlns:icfc=""

Some recommendations

  1. When creating mailboxes, the only attribute that is necessary to set, is RecipientType. Set it to UserMailbox and all other settings will be done via Exchange.
    For example, default addressing policies will be applied, and primary user mail address will be provided in PrimarySmtpAddress attribute (from where you can get it into midPoint via appropriate inbound mapping). Similarly, all addresses wil lbe present in EmailAddresses attribute.

  2. When creating external mail recipients, only two attributes to be set are RecipientType (set to MailUser) and ExternalEmailAddress.

  3. It is recommended to play for a while with the accounts on Resources→List resources→Accounts page and see how effect has changing RecipientType and setting some attributes on AD/Exchange user records.

  4. To prevent the execution of malicious scripts, PowerShell enforces an execution policy. By default, the execution policy is set to Restricted, which means that PowerShell scripts will not run. If a script execution error occurs when you set RecipientType field in the connector configuration, set the executon policy to RemoteSigned in Powershell using the command below,`Set-ExecutionPolicy RemoteSigned`Source: (thanks to Arda for providing this recommendation).

Resource Examples

Was this page helpful?
Thanks for your feedback