Skip to main content

Exchange Web Services Calendar

The Exchange Web Services backend uses Microsoft Exchange Web Services (EWS) to read and write calendar events. Use this backend for legacy EWS integrations or dedicated Exchange Server environments.

Reference data model: AliasSubExchangeWs

warning

Microsoft is phasing out EWS for Exchange Online starting in October 2026. Use Microsoft Graph for new Microsoft 365 integrations. EWS remains relevant for legacy setups and dedicated Exchange Server environments.

Authentication Methods

EWS supports two authentication modes:

MethodDescription
DefaultUses user, password, and optionally domain-based authentication.
OAuth2Uses OAuth2 client credentials with tenant ID, client ID, and client secret.

For broader EWS setup details, see Exchange Webservices.


OAuth2 Application Access

Use OAuth2 application access when ADITO should access Exchange through a registered application.

EWS OAuth2 alias configuration Figure: Exchange Web Services alias configured with OAuth2 application credentials.

PropertyDescription
hostSets the Exchange server host. Leave this empty only when autodiscover is used.
portSets the Exchange server port.
securityDefines whether the connection uses SSL.
authMethodSelect OAUTH2 for OAuth2 application access.
tenantIdSets the Microsoft Entra tenant ID.
clientIdSets the application client ID.
clientSecretSets the application client secret.
timezoneSets the time zone used for Exchange calendar calculations. Configure this carefully because all-day events and daylight-saving-time handling depend on it.
calendarLinkerAliasSets the database alias for the calendar linker.
uidResolverTypeSets the UID resolver type.
uidResolverAliasSets the database alias for the UID resolver table.
uidResolverTableSets the UID resolver table, typically ASYS_UIDRESOLVER.

OAuth2 with Impersonation

Use impersonation when a central Exchange user should be used as the login account for calendar requests.

EWS OAuth2 impersonation configuration Figure: Exchange Web Services alias configured for OAuth2 with impersonation.

Configure user with the impersonation account. The configured user is then used as the login account for EWS backend access.

For impersonation setup details, see General information about the connection of Microsoft Exchange.


Delegated User Access

Use delegated user access when each ADITO user should access the mailbox with user-specific credentials or user-specific Exchange settings.

Configure the user's calendarId with the email address used by the Exchange mailbox.

Calendar ID user property Figure: Calendar ID user property for Exchange mailbox mapping.

Use the extended user properties to configure Exchange-specific values where the project requires them.

EWS extended user properties Figure: Extended user properties for an Exchange Web Services calendar backend.

For delegated impersonation scenarios, configure the delegated impersonation properties in the extended user properties.

EWS delegated impersonation user properties Figure: Extended user properties for delegated EWS impersonation.

The exchangeemail property can be used to override the default calendarId for Exchange-specific mailbox mapping.


Additional EWS Options

PropertyDescription
preferBasicAuthMakes EWS prefer Basic authentication over Windows authentication. Use this only when the Exchange authentication setup requires it.
ewsRequestTimeoutSets the timeout for requests to the Exchange Web server.
itemPacketSizeSets how many items ADITO requests from Exchange in one packet. The default is 100.
calendarViewMaxCyclesSets the threshold used when ADITO switches calendar search algorithms for long intervals. The default is 20.
ewsTraceFlagsEnables EWS Java API debug output when the EXCHANGE debug level is active.